Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/deps/ports/zephyr-cp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ runs:
with:
app-path: zephyr-config
base-path: ports/zephyr-cp
toolchains: arm-zephyr-eabi
toolchains: arm-zephyr-eabi:riscv64-zephyr-elf
# The action's ccache stores a new ~150 MB entry per board job under one key
# shared by every board, and each job restores whichever entry was saved last.
# Measured across all 30 boards: hits on 5 boards by luck, none on the other 25,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# This file is autogenerated when a board is built. Do not edit. Do commit it to git. Other scripts use its info.
name = "Adafruit Industries LLC Metro CH32V407"

[modules]
__future__ = true
_airlift = false
_bleio = false
_eve = false
_pew = false
_pixelmap = false
_stage = false
adafruit_bus_device = true
adafruit_pixelbuf = false
aesio = true
alarm = false
analogbufio = false
analogio = false
async_spi = true # Zephyr board has async_spi
atexit = true
audiobusio = false
audiocore = false
audiodelays = false
audiofilewriter = false
audiofilters = false
audiofreeverb = false
audioi2sin = false
audioio = false
audiomixer = false
audiomp3 = false
audiopwmio = false
audiospeed = false
audiotap = false
aurora_epaper = false
bitbangio = true
bitmapfilter = true # Zephyr board has busio
bitmaptools = true # Zephyr board has busio
bitops = false
board = true # Always enabled
busdisplay = true # Zephyr board has busio
busio = true # Zephyr board has busio
camera = false
canio = false
codeop = true
countio = false
cryptography = false
digitalio = true
displayio = true # Zephyr board has busio
dotclockframebuffer = false
dualbank = false
emmcio = false
epaperdisplay = true # Zephyr board has busio
floppyio = false
fontio = true # Zephyr board has busio
fourwire = true # Zephyr board has busio
framebufferio = true # Zephyr board has busio
frequencyio = false
getpass = true
gifio = true # Zephyr board has busio
gnss = false
hardwarekey = false
hashlib = true
hmac = false
hostnetwork = false
i2cdisplaybus = true # Zephyr board has busio
i2cioexpander = false
i2ctarget = false
imagecapture = false
ipaddress = false
is31fl3741 = false
jpegio = true # Zephyr board has busio
keypad = true
keypad_demux = true
locale = true
lvfontio = true # Zephyr board has busio
math = true
max3421e = false
mcp4822 = false
mdns = false
memorymap = false
memorymonitor = false
microcontroller = true
mii = false
mipicsi = false
mipidsi = false
msgpack = true
neopixel_write = false
nvm = true # Board has NVM partition
onewireio = false
os = true
paralleldisplaybus = false
picogame = false
ps2io = false
pulseio = false
pwmio = false
qrio = false
qspibus = false
rainbowio = true
random = true
rclcpy = false
rgbmatrix = false
rotaryio = true # Zephyr board has rotaryio
rtc = false
sdcardio = true # Zephyr board has busio
sdioio = false
sharpdisplay = true # Zephyr board has busio
socketpool = false
spitarget = false
ssl = false
storage = true # Zephyr board has flash
struct = true
supervisor = true
synthio = false
terminalio = true # Zephyr board has busio
tilepalettemapper = true # Zephyr board has busio
time = true
touchio = true
traceback = true
uheap = false
usb = false
usb_audio = false
usb_cdc = true
usb_hid = true
usb_host = false
usb_host_audio = false
usb_host_bulk = false
usb_midi = false
usb_video = false
ustack = false
vectorio = true # Zephyr board has busio
videocore = false
videogif = false
warnings = true
watchdog = true # Zephyr board has watchdog
wifi = false
zephyr_display = false
zephyr_kernel = false
zlib = true
# extmod modules shared with MicroPython
asyncio = true
binascii = true
json = true
re = true
select = true
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Nothing on this board uses settings, so leave settings and NVS off.
CONFIG_SETTINGS=n
CONFIG_NVS=n

# REPL is on USB. No Zephyr UART console, so D0/D1 are free for busio.UART.
CONFIG_UART_CONSOLE=n
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* No Zephyr console by default, so D0/D1 (USART1) are free for busio.UART. A
* CONSOLE=1 build puts the console back on USART1 (console.overlay). */
/ {
chosen {
/delete-property/ zephyr,console;
/delete-property/ zephyr,shell-uart;
};

// Named pins that are not on the Arduino header.
// Their names are in circuitpython.toml [connectors.metro_ch32v4x7_pins].
metro_ch32v4x7_pins: metro-ch32v4x7-pins {
compatible = "adafruit-metro-ch32v4x7-pins";
#gpio-cells = <2>;
gpio-map-mask = <0xffffffff 0xffffffc0>;
gpio-map-pass-thru = <0 0x3f>;
gpio-map = <0 0 &gpioa 5 0>, /* SCK */
<1 0 &gpioa 7 0>, /* MOSI */
<2 0 &gpioa 6 0>, /* MISO */
<3 0 &gpioc 14 0>, /* NEOPIXEL */
<4 0 &gpioc 15 0>, /* BUTTON */
<5 0 &gpioa 10 0>; /* SD_CD */
};
};

#include "../../../app.overlay"
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
CIRCUITPY_BUILD_EXTENSIONS = ["uf2"]
USB_VID=0x239A
USB_PID=0x817E
NAME="Metro CH32V407"

[connectors.arduino_header]
"0" = "A0"
"1" = "A1"
"2" = "A2"
"3" = "A3"
"4" = "A4"
"5" = "A5"
"6" = ["D0", "RX"]
"7" = ["D1", "TX"]
"8" = "D2"
"9" = "D3"
"10" = "D4"
"11" = "D5"
"12" = "D6"
"13" = "D7"
"14" = "D8"
"15" = "D9"
"16" = "D10"
"17" = "D11"
"18" = "D12"
"19" = ["D13", "LED"]
"20" = "SDA"
"21" = "SCL"

[connectors.metro_ch32v4x7_pins]
"0" = "SCK"
"1" = "MOSI"
"2" = "MISO"
"3" = "NEOPIXEL"
"4" = "BUTTON"
"5" = "SD_CD"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Applied after board.overlay in CONSOLE=1 and DEBUG=1 builds: the Zephyr
* console on USART1, on the D0/D1 pins. D0/D1 are then not available to
* busio.UART. */
/ {
chosen {
zephyr,console = &usart1;
zephyr,shell-uart = &usart1;
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# This file is autogenerated when a board is built. Do not edit. Do commit it to git. Other scripts use its info.
name = "Adafruit Industries LLC Metro CH32V467"

[modules]
__future__ = true
_airlift = false
_bleio = false
_eve = false
_pew = false
_pixelmap = false
_stage = false
adafruit_bus_device = true
adafruit_pixelbuf = false
aesio = true
alarm = false
analogbufio = false
analogio = false
async_spi = true # Zephyr board has async_spi
atexit = true
audiobusio = false
audiocore = false
audiodelays = false
audiofilewriter = false
audiofilters = false
audiofreeverb = false
audioi2sin = false
audioio = false
audiomixer = false
audiomp3 = false
audiopwmio = false
audiospeed = false
audiotap = false
aurora_epaper = false
bitbangio = true
bitmapfilter = true # Zephyr board has busio
bitmaptools = true # Zephyr board has busio
bitops = false
board = true # Always enabled
busdisplay = true # Zephyr board has busio
busio = true # Zephyr board has busio
camera = false
canio = false
codeop = true
countio = false
cryptography = false
digitalio = true
displayio = true # Zephyr board has busio
dotclockframebuffer = false
dualbank = false
emmcio = false
epaperdisplay = true # Zephyr board has busio
floppyio = false
fontio = true # Zephyr board has busio
fourwire = true # Zephyr board has busio
framebufferio = true # Zephyr board has busio
frequencyio = false
getpass = true
gifio = true # Zephyr board has busio
gnss = false
hardwarekey = false
hashlib = true
hmac = false
hostnetwork = false
i2cdisplaybus = true # Zephyr board has busio
i2cioexpander = false
i2ctarget = false
imagecapture = false
ipaddress = false
is31fl3741 = false
jpegio = true # Zephyr board has busio
keypad = true
keypad_demux = true
locale = true
lvfontio = true # Zephyr board has busio
math = true
max3421e = false
mcp4822 = false
mdns = false
memorymap = false
memorymonitor = false
microcontroller = true
mii = false
mipicsi = false
mipidsi = false
msgpack = true
neopixel_write = false
nvm = true # Board has NVM partition
onewireio = false
os = true
paralleldisplaybus = false
picogame = false
ps2io = false
pulseio = false
pwmio = false
qrio = false
qspibus = false
rainbowio = true
random = true
rclcpy = false
rgbmatrix = false
rotaryio = true # Zephyr board has rotaryio
rtc = false
sdcardio = true # Zephyr board has busio
sdioio = false
sharpdisplay = true # Zephyr board has busio
socketpool = false
spitarget = false
ssl = false
storage = true # Zephyr board has flash
struct = true
supervisor = true
synthio = false
terminalio = true # Zephyr board has busio
tilepalettemapper = true # Zephyr board has busio
time = true
touchio = true
traceback = true
uheap = false
usb = false
usb_audio = false
usb_cdc = true
usb_hid = true
usb_host = false
usb_host_audio = false
usb_host_bulk = false
usb_midi = false
usb_video = false
ustack = false
vectorio = true # Zephyr board has busio
videocore = false
videogif = false
warnings = true
watchdog = true # Zephyr board has watchdog
wifi = false
zephyr_display = false
zephyr_kernel = false
zlib = true
# extmod modules shared with MicroPython
asyncio = true
binascii = true
json = true
re = true
select = true
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Nothing on this board uses settings, so leave settings and NVS off.
CONFIG_SETTINGS=n
CONFIG_NVS=n

# REPL is on USB. No Zephyr UART console, so D0/D1 are free for busio.UART.
CONFIG_UART_CONSOLE=n
Loading
Loading