adding a modliblib... module
Posted: Wed Dec 06, 2017 12:42 pm
Dear,
I have added a "modunalib.c" to the "/extmod" directory and added all necessary additions to
- ports/stm32/mpconfigport.h
- py/objmodule.c
and of course to the
- /extmod/modunalib.c
I use a #define MICROPYTHON_PY_UNALIB similar to the other modules to switch in/out the use of the library and skipping generating code when not in use.
Somehow when compiling the modunalib.c does not get compiled automagically...
Only by forcing it by adding it to the Makefile at the point where the modonewire.c is included, it will compile.
I'm wondering if that is ok, or shouldn't the making process pick up the added file? And if so, where to look to make it happen??
Regards,
Roland
I have added a "modunalib.c" to the "/extmod" directory and added all necessary additions to
- ports/stm32/mpconfigport.h
- py/objmodule.c
and of course to the
- /extmod/modunalib.c
I use a #define MICROPYTHON_PY_UNALIB similar to the other modules to switch in/out the use of the library and skipping generating code when not in use.
Somehow when compiling the modunalib.c does not get compiled automagically...
Only by forcing it by adding it to the Makefile at the point where the modonewire.c is included, it will compile.
I'm wondering if that is ok, or shouldn't the making process pick up the added file? And if so, where to look to make it happen??
Regards,
Roland