a960916b4f
The integration with Zephyr is fairly clean but requires us to use two arguments to describe a pin: drv_name - Name to be sent to device_get_binding() pin - Pin number within the port identified by drv_name There is support for in/out pins and pull up/pull down but currently there is no interrupt support. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Kbuild | ||
Makefile | ||
Makefile.zephyr | ||
README | ||
help.c | ||
main.c | ||
modmachine.c | ||
modpyb.h | ||
modpybpin.c | ||
modsocket.c | ||
modutime.c | ||
mpconfigport.h | ||
mphalport.h | ||
prj.conf | ||
prj.mdef | ||
uart_core.c | ||
z_config.mk |
README
This is initial proof of concept port of MicroPython to Zephyr RTOS http://zephyrproject.org. It only integrates with Zephyr's console subsystem so far. Supported out of the box is Zephyr's armv7-m (Cortex-M3) architecture, with qemu_cortex_m3 being a default target. Supporting others architectures may require editing makefiles. To build: Intstall Zephyr SDK and Zephyr source from the link above. Configure Zephyr environment as described in its instructions. Then: make To run in QEMU: make qemu To build for a real board (see link above for supported Cortex-M boards): make BOARD=frdm_k64f