stmhal/boards/STM32F769DISC: Get SD card working by using SDMMC2.

This commit is contained in:
Damien George 2017-03-30 17:58:45 +11:00
parent 9818c0db43
commit c74fa7f58e
3 changed files with 13 additions and 7 deletions

View File

@ -67,6 +67,12 @@
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin))
// SD card detect switch
#define MICROPY_HW_SDMMC2_CK (pin_D6)
#define MICROPY_HW_SDMMC2_CMD (pin_D7)
#define MICROPY_HW_SDMMC2_D0 (pin_G9)
#define MICROPY_HW_SDMMC2_D1 (pin_G10)
#define MICROPY_HW_SDMMC2_D2 (pin_B3)
#define MICROPY_HW_SDMMC2_D3 (pin_B4)
#define MICROPY_HW_SDCARD_DETECT_PIN (pin_I15)
#define MICROPY_HW_SDCARD_DETECT_PULL (GPIO_PULLUP)
#define MICROPY_HW_SDCARD_DETECT_PRESENT (GPIO_PIN_RESET)

View File

@ -1,4 +1,4 @@
MCU_SERIES = f7
CMSIS_MCU = STM32F769xx
AF_FILE = boards/stm32f769_af.csv
AF_FILE = boards/stm32f767_af.csv
LD_FILE = boards/stm32f769.ld

View File

@ -33,12 +33,12 @@ AUDIO_SCL,PH7
EXT_SDA,PB9
EXT_SCL,PB8
EXT_RST,PG3
SD_D0,PC8
SD_D1,PC9
SD_D2,PC10
SD_D3,PC11
SD_CK,PC12
SD_CMD,PD2
SD_D0,PG9
SD_D1,PG10
SD_D2,PB3
SD_D3,PB4
SD_CK,PD6
SD_CMD,PD7
SD_SW,PI15
LCD_BL_CTRL,PK3
LCD_INT,PI13

1 A0 PA0
33 EXT_SDA PB9
34 EXT_SCL PB8
35 EXT_RST PG3
36 SD_D0 PC8 PG9
37 SD_D1 PC9 PG10
38 SD_D2 PC10 PB3
39 SD_D3 PC11 PB4
40 SD_CK PC12 PD6
41 SD_CMD PD2 PD7
42 SD_SW PI15
43 LCD_BL_CTRL PK3
44 LCD_INT PI13