mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Move STM (and clone) related config in flash implementation to platform (#14103)
This commit is contained in:
parent
69f8f71b77
commit
02432af6fa
20 changed files with 653 additions and 535 deletions
|
@ -302,6 +302,18 @@ extern uint8_t _dmaram_end__;
|
|||
|
||||
#endif
|
||||
|
||||
#if defined(STM32H743xx) || defined(STM32H750xx) || defined(STM32H723xx) || defined(STM32H725xx)
|
||||
#define FLASH_CONFIG_STREAMER_BUFFER_SIZE 32 // Flash word = 256-bits (8 rows, uint32_t per row - 8 x 32)
|
||||
#define FLASH_CONFIG_BUFFER_TYPE uint32_t
|
||||
#elif defined(STM32H7A3xx) || defined(STM32H7A3xxQ)
|
||||
#define FLASH_CONFIG_STREAMER_BUFFER_SIZE 16 // Flash word = 128-bits (4 rows, uint32_t per row - 4 x 32)
|
||||
#define FLASH_CONFIG_BUFFER_TYPE uint32_t
|
||||
#elif defined(STM32G4)
|
||||
#define FLASH_CONFIG_BUFFER_TYPE uint64_t
|
||||
#else
|
||||
#define FLASH_CONFIG_BUFFER_TYPE uint32_t
|
||||
#endif
|
||||
|
||||
#if defined(STM32F4)
|
||||
#define SPI_IO_AF_CFG IO_CONFIG(GPIO_Mode_AF, GPIO_Speed_50MHz, GPIO_OType_PP, GPIO_PuPd_NOPULL)
|
||||
#define SPI_IO_AF_SCK_CFG IO_CONFIG(GPIO_Mode_AF, GPIO_Speed_50MHz, GPIO_OType_PP, GPIO_PuPd_DOWN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue