|
@ -4,7 +4,7 @@ |
|
|
#define MICROPY_HW_MCU_NAME "STM32F746" |
|
|
#define MICROPY_HW_MCU_NAME "STM32F746" |
|
|
|
|
|
|
|
|
#define MICROPY_HW_HAS_SWITCH (1) |
|
|
#define MICROPY_HW_HAS_SWITCH (1) |
|
|
#define MICROPY_HW_HAS_SDCARD (0) |
|
|
#define MICROPY_HW_HAS_SDCARD (1) |
|
|
#define MICROPY_HW_HAS_MMA7660 (0) |
|
|
#define MICROPY_HW_HAS_MMA7660 (0) |
|
|
#define MICROPY_HW_HAS_LIS3DSH (0) |
|
|
#define MICROPY_HW_HAS_LIS3DSH (0) |
|
|
#define MICROPY_HW_HAS_LCD (0) |
|
|
#define MICROPY_HW_HAS_LCD (0) |
|
@ -78,6 +78,11 @@ void STM32F7DISC_board_early_init(void); |
|
|
#define MICROPY_HW_LED_ON(pin) (pin->gpio->BSRR = pin->pin_mask) |
|
|
#define MICROPY_HW_LED_ON(pin) (pin->gpio->BSRR = pin->pin_mask) |
|
|
#define MICROPY_HW_LED_OFF(pin) (pin->gpio->BSRR = (pin->pin_mask << 16)) |
|
|
#define MICROPY_HW_LED_OFF(pin) (pin->gpio->BSRR = (pin->pin_mask << 16)) |
|
|
|
|
|
|
|
|
|
|
|
// SD card detect switch
|
|
|
|
|
|
#define MICROPY_HW_SDCARD_DETECT_PIN (pin_C13) |
|
|
|
|
|
#define MICROPY_HW_SDCARD_DETECT_PULL (GPIO_PULLUP) |
|
|
|
|
|
#define MICROPY_HW_SDCARD_DETECT_PRESENT (GPIO_PIN_RESET) |
|
|
|
|
|
|
|
|
// USB config (CN13 - USB OTG FS)
|
|
|
// USB config (CN13 - USB OTG FS)
|
|
|
// The Hardware VBUS detect only works on pin PA9. The STM32F7 Discovery uses
|
|
|
// The Hardware VBUS detect only works on pin PA9. The STM32F7 Discovery uses
|
|
|
// PA9 for VCP_TX functionality and connects the VBUS to pin J12 (so software
|
|
|
// PA9 for VCP_TX functionality and connects the VBUS to pin J12 (so software
|
|
|