Skip to content

Commit fa11912

Browse files
committed
New configuration values
1 parent 61944ef commit fa11912

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

ports/stm32f4/boards/stm32f4_discovery/mpconfigboard.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#define MICROPY_HW_BOARD_NAME "STM32F4_DISCO"
3030
#define MICROPY_HW_MCU_NAME "STM32F407VG"
3131

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
3436

3537
#define BOARD_OSC_DIV 8

ports/stm32f4/boards/stm32f4_discovery/mpconfigboard.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ USB_DEVICES = "CDC,MSC"
77
INTERNAL_FLASH_FILESYSTEM = 1
88
LONGINT_IMPL = NONE
99

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.
1112
MCU_SERIES = m4
1213
MCU_VARIANT = stm32f4
1314
MCU_SUB_VARIANT = stm32f405xx

ports/stm32f4/boards/stm32f4_discovery/stm32f4xx_hal_conf.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/* #define HAL_CAN_MODULE_ENABLED */
4242
/* #define HAL_CRC_MODULE_ENABLED */
4343
/* #define HAL_CRYP_MODULE_ENABLED */
44-
/* #define HAL_DAC_MODULE_ENABLED */
44+
#define HAL_DAC_MODULE_ENABLED
4545
/* #define HAL_DCMI_MODULE_ENABLED */
4646
/* #define HAL_DMA2D_MODULE_ENABLED */
4747
/* #define HAL_ETH_MODULE_ENABLED */
@@ -55,15 +55,15 @@
5555
#define HAL_I2S_MODULE_ENABLED
5656
/* #define HAL_IWDG_MODULE_ENABLED */
5757
/* #define HAL_LTDC_MODULE_ENABLED */
58-
/* #define HAL_RNG_MODULE_ENABLED */
58+
#define HAL_RNG_MODULE_ENABLED
5959
/* #define HAL_RTC_MODULE_ENABLED */
6060
/* #define HAL_SAI_MODULE_ENABLED */
6161
/* #define HAL_SD_MODULE_ENABLED */
6262
/* #define HAL_MMC_MODULE_ENABLED */
6363
#define HAL_SPI_MODULE_ENABLED
6464
#define HAL_TIM_MODULE_ENABLED
6565
#define HAL_UART_MODULE_ENABLED
66-
/* #define HAL_USART_MODULE_ENABLED */
66+
#define HAL_USART_MODULE_ENABLED
6767
/* #define HAL_IRDA_MODULE_ENABLED */
6868
/* #define HAL_SMARTCARD_MODULE_ENABLED */
6969
/* #define HAL_WWDG_MODULE_ENABLED */

0 commit comments

Comments
 (0)