micropython/ports/mimxrt
Philipp Ebensberger 87f97e490c mimxrt/sdcard: Implement SDCard driver.
- Configures `PLL2->PFD0` with **198MHz** as base clock of
	`USDHCx` peripheral.
- Adds guards for SDCard related files via `MICROPY_PY_MACHINE_SDCARD`
- Adds creation of pin defines for SDCard to make-pins.py
- Adds new configuration option for SDCard peripheral pinout
        to mpconfigport.h
- Adds interrupt handling support instead of polling
- Adds support for `ADMA2` powered data transfer
- Configures SDCard to run in HS (high-speed mode) with **50MHz** only!

SDCard support is optional and requires `USDHC` peripheral.
Thus this driver is not available on `MIMXRT1010_EVK`.
SDCard support is enabled by setting `MICROPY_PY_MACHINE_SDCARD = 1`
in mpconfigboard.mk.

Signed-off-by: Philipp Ebensberger
2021-09-07 20:45:33 +02:00
..
boards
hal
modules
Makefile
README.md
board_init.c
dma_channel.c
dma_channel.h
fatfs_port.c
led.c
led.h
machine_adc.c
machine_i2c.c
machine_led.c
machine_pin.c
machine_rtc.c
machine_sdcard.c
machine_spi.c
machine_timer.c
machine_uart.c
main.c
mimxrt_flash.c
modmachine.c
modmachine.h
modmimxrt.c
modmimxrt.h
moduos.c
modutime.c
mpconfigport.h mimxrt/sdcard: Implement SDCard driver. 2021-09-07 20:45:33 +02:00
mphalport.c
mphalport.h
pin.c
pin.h
qstrdefsport.h
sdcard.c
sdcard.h
ticks.c
ticks.h
tusb_config.h
tusb_port.c

README.md

Port of MicroPython to NXP iMX RT 10xx

Currently supports Teensy 4.0 and the i.MX RT1010 EVK board.

Features:

  • REPL over USB VCP
  • machine.Pin

Known issues:

  • pyboard.py doesn't work with files larger than 64 bytes
  • machine.Pin class currently does not support GPIOMUX option of i.MX RT101x variants

TODO:

  • Enable TCM
  • Peripherals (LED, Timers, etc)