Skip to content

Commit d7f1994

Browse files
dhylandsdpgeorge
authored andcommitted
stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com.
1 parent 7353324 commit d7f1994

File tree

12 files changed

+512
-0
lines changed

12 files changed

+512
-0
lines changed

stmhal/boards/CERB40/mpconfigboard.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#define CERB40
2+
3+
#define MICROPY_HW_BOARD_NAME "Cerb40"
4+
#define MICROPY_HW_MCU_NAME "STM32F405RG"
5+
#define MICROPY_PY_SYS_PLATFORM "pyboard"
6+
7+
#define MICROPY_HW_HAS_SWITCH (0)
8+
#define MICROPY_HW_HAS_SDCARD (0)
9+
#define MICROPY_HW_HAS_MMA7660 (0)
10+
#define MICROPY_HW_HAS_LIS3DSH (0)
11+
#define MICROPY_HW_HAS_LCD (0)
12+
#define MICROPY_HW_ENABLE_RNG (1)
13+
#define MICROPY_HW_ENABLE_RTC (1)
14+
#define MICROPY_HW_ENABLE_TIMER (1)
15+
#define MICROPY_HW_ENABLE_SERVO (0)
16+
#define MICROPY_HW_ENABLE_DAC (1)
17+
#define MICROPY_HW_ENABLE_I2C1 (1)
18+
#define MICROPY_HW_ENABLE_SPI1 (1)
19+
#define MICROPY_HW_ENABLE_SPI2 (0)
20+
#define MICROPY_HW_ENABLE_SPI3 (1)
21+
#define MICROPY_HW_ENABLE_CAN (1)
22+
23+
// The Cerb40 has No LEDs
24+
25+
// The Cerb40 has No SDCard
26+
27+
// USB config
28+
//#define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9)
29+
//#define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)

stmhal/boards/CERB40/pins.csv

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
JP1,3.3V
2+
JP2,GND
3+
JP3,PA8
4+
JP4,PA13
5+
JP5,PA7
6+
JP6,PA6
7+
JP7,PC10
8+
JP8,PA14
9+
JP9,PC11
10+
JP10,PB4
11+
JP11,PB9
12+
JP12,PB3
13+
JP13,PD2
14+
JP14,PC12
15+
JP15,VBAT
16+
JP16,PB8
17+
JP17,Loader
18+
JP18,PB7
19+
JP19,PB6
20+
JP20,PB5
21+
JP21,Reset
22+
JP22,PC0
23+
JP23,PC1
24+
JP24,PC2
25+
JP25,PC3
26+
JP26,PA0
27+
JP27,PA1
28+
JP28,PA2
29+
JP29,PA3
30+
JP30,PA4
31+
JP31,PA5
32+
JP32,PB10
33+
JP33,PB11
34+
JP34,PB14
35+
JP35,PB15
36+
JP36,PC6
37+
JP37,PC7
38+
JP38,PC8
39+
JP39,PC9
40+
JP40,VUSB

0 commit comments

Comments
 (0)