JSAPI and ST’s libraries (either the newer HAL or the older Standard Peripheral Library SPL) can inter-operate without problems. You may use ST’s libraries to access peripheral functions or I/O registers not visible through JSAPI functions. The following caveats apply:
· You have to be careful when you are using JSAPI and ST calls that work on the same peripheral I/O registers, and
· JSAPI functions are C++ functions and must be called by C++ functions, and ST libraries are written in C. However, it is easy to mix C and C++ code (see ).
Probably an exaggeration, but perhaps not too far off from the mark.
Our V8 C compiler supports “C with Classes”, required for the JSAPI member function abstraction.
 You may search for “name mangling” on the web, if you want to know more details.
You may also create a library project, where the output is a binary library file that other projects may link with to use the functions within that library file.
Silicon device usually gives meaning names to the IRQx, e.g. TIMER1_OVERFLOW