It is quite easy to expose such stuff as inline C code, anything that gcc compiler allows to compile including inline assembly can be used. You can also setup the compiler service on your computer to enable preprocessor or other compiler flags if needed
see e.g. this https://gist.github.com/fanoush/9227640a869d78d69a799276dff0fb71 or a bit outdated (some patches no longer needed) guide here https://github.com/fanoush/ds-d6/wiki/Espruino-Inline-C
© Espruino, powered by microcosm.
Report a problem