File tree 4 files changed +6
-0
lines changed
4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 28
28
// External SPI Flash config
29
29
#if !MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
30
30
31
+ #define MICROPY_HW_SPI_IS_RESERVED (id ) (id == 1) // Reserve SPI flash bus.
31
32
#define MICROPY_HW_SPIFLASH_SIZE_BITS (16 * 1024 * 1024) // 16 Mbit (2 MByte)
32
33
33
34
#define MICROPY_HW_SPIFLASH_CS (MICROPY_HW_SPI1_NSS)
Original file line number Diff line number Diff line change 65
65
#define MICROPY_HW_SPI2_SCK (pyb_pin_FLASH_SCK)
66
66
#define MICROPY_HW_SPI2_MISO (pyb_pin_FLASH_MISO)
67
67
#define MICROPY_HW_SPI2_MOSI (pyb_pin_FLASH_MOSI)
68
+ #define MICROPY_HW_SPI_IS_RESERVED (id ) (id == 2) // Reserve SPI flash bus.
68
69
69
70
// USB config
70
71
#define MICROPY_HW_USB_VBUS_DETECT_PIN (pyb_pin_USB_VBUS)
Original file line number Diff line number Diff line change 71
71
// External SPI Flash config (Cypress S25FL164K)
72
72
#if !MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
73
73
74
+ #define MICROPY_HW_SPI_IS_STATIC (id ) (id == 3) // Shared with SPIFLASH.
74
75
#define MICROPY_HW_SPIFLASH_SIZE_BITS (64 * 1024 * 1024) // 64 Mbit (8 MByte)
75
76
76
77
#define MICROPY_HW_SPIFLASH_CS (pin_A13)
Original file line number Diff line number Diff line change 86
86
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (1)
87
87
88
88
#else
89
+ // Reserve SPI flash bus.
90
+ #define MICROPY_HW_SPI_IS_RESERVED (id ) (id == 1)
91
+
89
92
// Disable internal filesystem to use spiflash.
90
93
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
91
94
You can’t perform that action at this time.
0 commit comments