Skip to content

Commit b886f19

Browse files
committed
stm/boards: Add support for SparkFun STM32 MicroMod Processor board.
Signed-off-by: Chris Wilson <christopher.david.wilson@gmail.com>
1 parent 00b617c commit b886f19

File tree

14 files changed

+1014
-310
lines changed

14 files changed

+1014
-310
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ jobs:
369369
- "sparkfun_samd21_mini"
370370
- "sparkfun_samd51_micromod"
371371
- "sparkfun_samd51_thing_plus"
372+
- "sparkfun_stm32f405_micromod"
372373
- "sparkfun_thing_plus_rp2040"
373374
- "spresense"
374375
- "stackrduino_m0_pro"

ports/atmel-samd/boards/sparkfun_samd51_micromod/mpconfigboard.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
#define MICROPY_HW_BOARD_NAME "SparkFun MicroMod SAMD51"
1+
#define MICROPY_HW_BOARD_NAME "SparkFun MicroMod SAMD51 Processor"
22
#define MICROPY_HW_MCU_NAME "samd51j20"
33

44
#define CIRCUITPY_MCU_FAMILY samd51
55

6+
// Status LED
7+
#define MICROPY_HW_LED_STATUS (&pin_PA23)
8+
69
// On-board flash
710
#define SPI_FLASH_MOSI_PIN &pin_PA09
811
#define SPI_FLASH_MISO_PIN &pin_PA10

ports/atmel-samd/boards/sparkfun_samd51_micromod/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
LD_FILE = boards/samd51x20-bootloader-external-flash.ld
22
USB_VID = 0x1b4f
33
USB_PID = 0x0020 # Used by uf2 bootloader
4-
USB_PRODUCT = "SparkFun MicroMod SAMD51"
4+
USB_PRODUCT = "SparkFun MicroMod SAMD51 Processor"
55
USB_MANUFACTURER = "SparkFun Electronics"
66

77
CHIP_VARIANT = SAMD51J20A

ports/atmel-samd/boards/sparkfun_samd51_micromod/pins.c

Lines changed: 218 additions & 92 deletions
Large diffs are not rendered by default.

ports/nrf/boards/sparkfun_nrf52840_micromod/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include "nrfx/hal/nrf_gpio.h"
2929

30-
#define MICROPY_HW_BOARD_NAME "SparkFun MicroMod nRF52840"
30+
#define MICROPY_HW_BOARD_NAME "SparkFun MicroMod nRF52840 Processor"
3131
#define MICROPY_HW_MCU_NAME "nRF52840"
3232

3333
#define DEFAULT_I2C_BUS_SCL (&pin_P0_11)

ports/nrf/boards/sparkfun_nrf52840_micromod/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
USB_VID = 0x1B4F
22
USB_PID = 0x0021
3-
USB_PRODUCT = "SFE_nRF52840_MicroMod"
3+
USB_PRODUCT = "SparkFun MicroMod nRF52840 Processor"
44
USB_MANUFACTURER = "SparkFun Electronics"
55

66
MCU_CHIP = nrf52840

ports/nrf/boards/sparkfun_nrf52840_micromod/pins.c

Lines changed: 215 additions & 108 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
#define MICROPY_HW_BOARD_NAME "SparkFun MicroMod ATP - RP2040"
1+
#define MICROPY_HW_BOARD_NAME "SparkFun MicroMod RP2040 Processor"
22
#define MICROPY_HW_MCU_NAME "rp2040"
33

4+
// Status LED
5+
#define MICROPY_HW_LED_STATUS (&pin_GPIO25)
6+
47
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO5)
58
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO4)
69

7-
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO14)
8-
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO15)
9-
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO12)
10+
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO22)
11+
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO23)
12+
#define DEFAULT_SPI_BUS_MISO (&pin_GPIO20)
1013

1114
#define DEFAULT_UART_BUS_RX (&pin_GPIO1)
1215
#define DEFAULT_UART_BUS_TX (&pin_GPIO0)

ports/raspberrypi/boards/sparkfun_micromod_rp2040/mpconfigboard.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
USB_VID = 0x1B4F
22
USB_PID = 0x0024
3-
USB_PRODUCT = "MicroMod RP2040"
4-
USB_MANUFACTURER = "SparkFun"
3+
USB_PRODUCT = "SparkFun MicroMod RP2040 Processor"
4+
USB_MANUFACTURER = "SparkFun Electronics"
55

66
CHIP_VARIANT = RP2040
77
CHIP_FAMILY = rp2

ports/raspberrypi/boards/sparkfun_micromod_rp2040/pins.c

Lines changed: 217 additions & 100 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy