mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 13:01:10 +02:00
Prune trailing whitespace across the whole project (almost), done automatically with: grep -IUrl --color "[[:blank:]]$" --exclude-dir=.git --exclude=*.exp |\ xargs sed -i 's/[[:space:]]*$//' Exceptions: - Skip third-party code in lib/ and drivers/cc3100/ - Skip generated code in bluetooth_init_cc2564C_1.5.c - Preserve command output whitespace in docs, eg: docs/esp8266/tutorial/repl.rst Signed-off-by: Phil Howard <phil@gadgetoid.com>
MicroPython embed port
This is a port of MicroPython that outputs a set of .c and .h files for embedding into a wider project. This port essentially targets the C language, instead of a particular hardware architecture or platform.
To use this port in a project there are three main steps:
-
Provide configuration for the project via an
mpconfigport.h
file. -
Build this embed port against that configuration, using the provided
embed.mk
. The output is a set of self-contained source files for building MicroPython. These files can be placed outside this repository. -
Build the project. This requires compiling all .c files from the above step.
See examples/embedding
for an example.