The latest Micropython.doc has nothing on these keywords, ie MICROPY_PY_LWIP etc.
Thanks
Where are MICROPY_PY_xyz defined?
Re: Where are MICROPY_PY_xyz defined?
The docs mostly focus on using MicroPython, and less on the actual development of MicroPython firmware (but this is improving).
Many of the core options are defined, with defaults, in py/mpconfig.h. Mostly these are the options that define the core runtime and standard libraries.
Then it's up to a port (via port/mpconfigport.h) and a board (via port/board/BOARD/mpconfigboard.h) to set these as appropriate (e.g. to enable specific features).
There are other options that are specific to given ports and libraries (e.g. LWIP, Bluetooth, etc).
Some of these options are also set via the build (e.g. via the Makefiles) which set them in CFLAGS using the -D flag.
Re: Where are MICROPY_PY_xyz defined?
I was actually looking in that file and saw MICROPY_PY_LWIP mentioned twice so I think you have put:
in the mpconfigboard.mk file to get it to work.
Thanks for the explanation.
Code: Select all
MICROPY_PY_LWIP = 1
Thanks for the explanation.