File tree Expand file tree Collapse file tree 13 files changed +35
-22
lines changed
feather_stm32f405_express
peripherals/stm32f4/stm32f411xe Expand file tree Collapse file tree 13 files changed +35
-22
lines changed Original file line number Diff line number Diff line change 32
32
#define FLASH_SIZE (0x60000)
33
33
#define FLASH_PAGE_SIZE (0x4000)
34
34
35
- #define AUTORESET_DELAY_MS 500
35
+ #define AUTORESET_DELAY_MS ( 500)
36
36
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000)
37
37
38
- #define BOARD_OSC_DIV 8
38
+ #define BOARD_OSC_DIV (8)
39
39
Original file line number Diff line number Diff line change 32
32
#define FLASH_SIZE (0x80000) //512K
33
33
#define FLASH_PAGE_SIZE (0x4000) //16K
34
34
35
- #define BOARD_OSC_DIV 8
36
- #define BOARD_OVERWRITE_SWD
35
+ #define BOARD_OSC_DIV (8)
36
+ #define BOARD_OVERWRITE_SWD (1)
Original file line number Diff line number Diff line change 42
42
43
43
// Bootloader only
44
44
#ifdef UF2_BOOTLOADER_ENABLED
45
- #define BOARD_VTOR_DEFER //Leave VTOR relocation to bootloader
45
+ #define BOARD_VTOR_DEFER (1) //Leave VTOR relocation to bootloader
46
46
#endif
47
47
48
48
#define DEFAULT_I2C_BUS_SCL (&pin_PB06)
Original file line number Diff line number Diff line change 35
35
#define AUTORESET_DELAY_MS 500
36
36
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000)
37
37
38
- #define BOARD_OSC_DIV 12
39
- #define BOARD_NO_VBUS_SENSE
40
- #define BOARD_VTOR_DEFER //Leave VTOR relocation to bootloader
41
- #define BOARD_USE_INTERNAL_SPI
38
+ #define BOARD_OSC_DIV (12)
39
+ #define BOARD_NO_VBUS_SENSE (1)
40
+ #define BOARD_VTOR_DEFER (1) //Leave VTOR relocation to bootloader
41
+ #define BOARD_USE_INTERNAL_SPI (1)
42
42
43
43
// On-board flash
44
44
#define SPI_FLASH_MOSI_PIN (&pin_PB15)
Original file line number Diff line number Diff line change 32
32
#define FLASH_SIZE (0x80000)
33
33
#define FLASH_PAGE_SIZE (0x4000)
34
34
35
- #define BOARD_OSC_DIV 8
35
+ #define BOARD_OSC_DIV (8)
36
36
37
37
// On-board flash
38
38
#define SPI_FLASH_MOSI_PIN (&pin_PB15)
39
39
#define SPI_FLASH_MISO_PIN (&pin_PB14)
40
40
#define SPI_FLASH_SCK_PIN (&pin_PB13)
41
41
#define SPI_FLASH_CS_PIN (&pin_PB12)
42
42
43
- #define CIRCUITPY_AUTORELOAD_DELAY_MS 500
43
+ #define CIRCUITPY_AUTORELOAD_DELAY_MS ( 500)
44
44
45
45
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x2000 - 0xC000)
46
46
47
- #define AUTORESET_DELAY_MS 500
47
+ #define AUTORESET_DELAY_MS ( 500)
Original file line number Diff line number Diff line change 32
32
#define FLASH_SIZE (0x100000)
33
33
#define FLASH_PAGE_SIZE (0x4000)
34
34
35
-
36
35
#define DEFAULT_I2C_BUS_SCL (&pin_PB06)
37
36
#define DEFAULT_I2C_BUS_SDA (&pin_PB07)
Original file line number Diff line number Diff line change 32
32
#define FLASH_SIZE (0x80000)
33
33
#define FLASH_PAGE_SIZE (0x4000)
34
34
35
- #define BOARD_OSC_DIV 25
36
- #define BOARD_NO_VBUS_SENSE
35
+ #define BOARD_OSC_DIV (25)
36
+ #define BOARD_NO_VBUS_SENSE (1)
37
37
38
38
// On-board flash
39
39
// #define SPI_FLASH_MOSI_PIN (&pin_PA07)
40
40
// #define SPI_FLASH_MISO_PIN (&pin_PA06)
41
41
// #define SPI_FLASH_SCK_PIN (&pin_PA05)
42
42
// #define SPI_FLASH_CS_PIN (&pin_PA04)
43
43
44
- #define CIRCUITPY_AUTORELOAD_DELAY_MS 500
44
+ #define CIRCUITPY_AUTORELOAD_DELAY_MS ( 500)
45
45
46
46
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x2000 - 0xC000)
47
47
48
- #define AUTORESET_DELAY_MS 500
48
+ #define AUTORESET_DELAY_MS ( 500)
Original file line number Diff line number Diff line change 32
32
#define FLASH_SIZE (0x80000) //512K
33
33
#define FLASH_PAGE_SIZE (0x4000) //16K
34
34
35
- #define BOARD_OSC_DIV 8
35
+ #define BOARD_OSC_DIV (8)
Original file line number Diff line number Diff line change 37
37
// 24kiB stack
38
38
#define CIRCUITPY_DEFAULT_STACK_SIZE 0x6000
39
39
40
+ //Board flags:
41
+ #ifndef BOARD_OVERWRITE_SWD
42
+ #define BOARD_OVERWRITE_SWD (0)
43
+ #endif
44
+ #ifndef BOARD_VTOR_DEFER
45
+ #define BOARD_VTOR_DEFER (0)
46
+ #endif
47
+ #ifndef BOARD_NO_VBUS_SENSE
48
+ #define BOARD_NO_VBUS_SENSE (0)
49
+ #endif
50
+ #ifndef BOARD_USE_INTERNAL_SPI
51
+ #define BOARD_USE_INTERNAL_SPI (0)
52
+ #endif
53
+
40
54
#include "py/circuitpy_mpconfig.h"
41
55
42
56
#define MAX_UART 10 //how many UART are implemented
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ void stm32f4_peripherals_gpio_init(void) {
42
42
never_reset_pin_number (2 ,14 ); //PC14 OSC32_IN
43
43
never_reset_pin_number (2 ,15 ); //PC15 OSC32_OUT
44
44
45
- #if !defined (BOARD_OVERWRITE_SWD )
45
+ #if !(BOARD_OVERWRITE_SWD )
46
46
never_reset_pin_number (0 ,13 ); //PA13 SWDIO
47
47
never_reset_pin_number (0 ,14 ); //PA14 SWCLK
48
48
#endif
You can’t perform that action at this time.
0 commit comments