File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
ports/stm32/boards/PYBD_SF2 Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ void board_sleep(int value);
65
65
#define MICROPY_HW_RTC_USE_CALOUT (1)
66
66
67
67
// SPI flash #1, for R/W storage
68
+ #define MICROPY_HW_SPIFLASH_DEVICES AT25SF161B
68
69
#define MICROPY_HW_SOFTQSPI_SCK_LOW (self ) (GPIOE->BSRR = (0x10000 << 11))
69
70
#define MICROPY_HW_SOFTQSPI_SCK_HIGH (self ) (GPIOE->BSRR = (1 << 11))
70
71
#define MICROPY_HW_SOFTQSPI_NIBBLE_READ (self ) ((GPIOE->IDR >> 7) & 0xf)
71
- #define MICROPY_HW_SPIFLASH_SIZE_BITS (16 * 1024 * 1024)
72
72
#define MICROPY_HW_SPIFLASH_CS (pyb_pin_QSPI1_CS)
73
73
#define MICROPY_HW_SPIFLASH_SCK (pyb_pin_QSPI1_CLK)
74
74
#define MICROPY_HW_SPIFLASH_IO0 (pyb_pin_QSPI1_D0)
@@ -84,7 +84,6 @@ extern struct _spi_bdev_t spi_bdev;
84
84
#endif
85
85
#define MICROPY_HW_BDEV_SPIFLASH (&spi_bdev)
86
86
#define MICROPY_HW_BDEV_SPIFLASH_CONFIG (&spiflash_config)
87
- #define MICROPY_HW_BDEV_SPIFLASH_SIZE_BYTES (MICROPY_HW_SPIFLASH_SIZE_BITS / 8)
88
87
#define MICROPY_HW_BDEV_SPIFLASH_EXTENDED (&spi_bdev) // for extended block protocol
89
88
90
89
// SPI flash #2, to be memory mapped
You can’t perform that action at this time.
0 commit comments