File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
ports/stm32f4/boards/stm32f4_discovery Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 29
29
#define MICROPY_HW_BOARD_NAME "STM32F4_DISCO"
30
30
#define MICROPY_HW_MCU_NAME "STM32F407VG"
31
31
32
- #define FLASH_SIZE (0x80000) //512K
33
- #define FLASH_PAGE_SIZE (0x4000) //16K
32
+ #define FLASH_SIZE (0x100000)
33
+ #define FLASH_PAGE_SIZE (0x4000)
34
+
35
+ #define BOARD_NO_VBUS_SENSE
34
36
35
37
#define BOARD_OSC_DIV 8
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ USB_DEVICES = "CDC,MSC"
7
7
INTERNAL_FLASH_FILESYSTEM = 1
8
8
LONGINT_IMPL = NONE
9
9
10
- # This is technically a F407 but there's no difference.
10
+ # This is technically a F407 but there's no difference
11
+ # other than the camera and ethernet, which aren't supported.
11
12
MCU_SERIES = m4
12
13
MCU_VARIANT = stm32f4
13
14
MCU_SUB_VARIANT = stm32f405xx
Original file line number Diff line number Diff line change 41
41
/* #define HAL_CAN_MODULE_ENABLED */
42
42
/* #define HAL_CRC_MODULE_ENABLED */
43
43
/* #define HAL_CRYP_MODULE_ENABLED */
44
- /* #define HAL_DAC_MODULE_ENABLED */
44
+ #define HAL_DAC_MODULE_ENABLED
45
45
/* #define HAL_DCMI_MODULE_ENABLED */
46
46
/* #define HAL_DMA2D_MODULE_ENABLED */
47
47
/* #define HAL_ETH_MODULE_ENABLED */
55
55
#define HAL_I2S_MODULE_ENABLED
56
56
/* #define HAL_IWDG_MODULE_ENABLED */
57
57
/* #define HAL_LTDC_MODULE_ENABLED */
58
- /* #define HAL_RNG_MODULE_ENABLED */
58
+ #define HAL_RNG_MODULE_ENABLED
59
59
/* #define HAL_RTC_MODULE_ENABLED */
60
60
/* #define HAL_SAI_MODULE_ENABLED */
61
61
/* #define HAL_SD_MODULE_ENABLED */
62
62
/* #define HAL_MMC_MODULE_ENABLED */
63
63
#define HAL_SPI_MODULE_ENABLED
64
64
#define HAL_TIM_MODULE_ENABLED
65
65
#define HAL_UART_MODULE_ENABLED
66
- /* #define HAL_USART_MODULE_ENABLED */
66
+ #define HAL_USART_MODULE_ENABLED
67
67
/* #define HAL_IRDA_MODULE_ENABLED */
68
68
/* #define HAL_SMARTCARD_MODULE_ENABLED */
69
69
/* #define HAL_WWDG_MODULE_ENABLED */
You can’t perform that action at this time.
0 commit comments