micropython/zephyr
Daniel Thompson a960916b4f zephyr: Initial attempt at machine.Pin
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>
2016-09-29 17:16:32 -07:00
..
src zephyr: Allow NETWORKING and MBEDTLS to be disabled 2016-09-24 16:45:49 -07:00
.gitignore zephyr: Add a .gitignore file 2016-09-24 18:59:22 +01:00
Kbuild zephyr: Initial Zephyr RTOS port, Zephyr part. 2016-09-23 14:31:13 +03:00
Makefile zephyr: Initial attempt at machine.Pin 2016-09-29 17:16:32 -07:00
Makefile.zephyr zephyr: Enable building ussl_mbedtls module. 2016-09-23 14:31:15 +03:00
README zephyr: Add README. 2016-09-23 14:31:13 +03:00
help.c zephyr: Implement the help() function 2016-09-24 16:45:49 -07:00
main.c zephyr/main: Execute main.py frozen module on boot, if available. 2016-09-23 14:31:16 +03:00
modmachine.c zephyr: Initial attempt at machine.Pin 2016-09-29 17:16:32 -07:00
modpyb.h zephyr: Initial attempt at machine.Pin 2016-09-29 17:16:32 -07:00
modpybpin.c zephyr: Initial attempt at machine.Pin 2016-09-29 17:16:32 -07:00
modsocket.c zephyr: Exploit "make outputexports" 2016-09-28 14:21:58 -07:00
modutime.c zephyr: Implement utime module 2016-09-24 16:45:49 -07:00
mpconfigport.h zephyr: Initial attempt at machine.Pin 2016-09-29 17:16:32 -07:00
mphalport.h zephyr: Initial Zephyr RTOS port, MicroPython part. 2016-09-23 14:31:13 +03:00
prj.conf zephyr/prj.conf: Bump number of RX/TX buffers. 2016-09-23 14:31:16 +03:00
prj.mdef zephyr/prj.mdef: Bump "main" stack size to 8K. 2016-09-23 14:31:15 +03:00
uart_core.c zephyr: Initial Zephyr RTOS port, MicroPython part. 2016-09-23 14:31:13 +03:00
z_config.mk zephyr/Makefile: Automatically derive target-specific CFLAGS. 2016-09-23 14:31:16 +03:00

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