Skip to content

Commit

Permalink
stmhal: Add support for FEZ Cerb40 II board from ghielectronics.com.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhylands authored and dpgeorge committed Jan 21, 2015
1 parent 7353324 commit d7f1994
Show file tree
Hide file tree
Showing 12 changed files with 512 additions and 0 deletions.
29 changes: 29 additions & 0 deletions stmhal/boards/CERB40/mpconfigboard.h
@@ -0,0 +1,29 @@
#define CERB40

#define MICROPY_HW_BOARD_NAME "Cerb40"
#define MICROPY_HW_MCU_NAME "STM32F405RG"
#define MICROPY_PY_SYS_PLATFORM "pyboard"

#define MICROPY_HW_HAS_SWITCH (0)
#define MICROPY_HW_HAS_SDCARD (0)
#define MICROPY_HW_HAS_MMA7660 (0)
#define MICROPY_HW_HAS_LIS3DSH (0)
#define MICROPY_HW_HAS_LCD (0)
#define MICROPY_HW_ENABLE_RNG (1)
#define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_TIMER (1)
#define MICROPY_HW_ENABLE_SERVO (0)
#define MICROPY_HW_ENABLE_DAC (1)
#define MICROPY_HW_ENABLE_I2C1 (1)
#define MICROPY_HW_ENABLE_SPI1 (1)
#define MICROPY_HW_ENABLE_SPI2 (0)
#define MICROPY_HW_ENABLE_SPI3 (1)
#define MICROPY_HW_ENABLE_CAN (1)

// The Cerb40 has No LEDs

// The Cerb40 has No SDCard

// USB config
//#define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9)
//#define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)
40 changes: 40 additions & 0 deletions stmhal/boards/CERB40/pins.csv
@@ -0,0 +1,40 @@
JP1,3.3V
JP2,GND
JP3,PA8
JP4,PA13
JP5,PA7
JP6,PA6
JP7,PC10
JP8,PA14
JP9,PC11
JP10,PB4
JP11,PB9
JP12,PB3
JP13,PD2
JP14,PC12
JP15,VBAT
JP16,PB8
JP17,Loader
JP18,PB7
JP19,PB6
JP20,PB5
JP21,Reset
JP22,PC0
JP23,PC1
JP24,PC2
JP25,PC3
JP26,PA0
JP27,PA1
JP28,PA2
JP29,PA3
JP30,PA4
JP31,PA5
JP32,PB10
JP33,PB11
JP34,PB14
JP35,PB15
JP36,PC6
JP37,PC7
JP38,PC8
JP39,PC9
JP40,VUSB

0 comments on commit d7f1994

Please sign in to comment.