mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: fixed page size for STM31F105 flash
This commit is contained in:
parent
18f3f7a87e
commit
5a2cecd0c8
|
@ -112,9 +112,12 @@ static const uint32_t flash_memmap[STM32_FLASH_NPAGES] = { KB(32), KB(32), KB(32
|
|||
#elif defined(STM32H7)
|
||||
#define STM32_FLASH_NPAGES (BOARD_FLASH_SIZE / 128)
|
||||
#define STM32_FLASH_FIXED_PAGE_SIZE 128
|
||||
#elif defined(STM32F1)
|
||||
#elif defined(STM32F100_MCUCONF) || defined(STM32F103_MCUCONF)
|
||||
#define STM32_FLASH_NPAGES BOARD_FLASH_SIZE
|
||||
#define STM32_FLASH_FIXED_PAGE_SIZE 1
|
||||
#elif defined(STM32F105_MCUCONF)
|
||||
#define STM32_FLASH_NPAGES (BOARD_FLASH_SIZE/2)
|
||||
#define STM32_FLASH_FIXED_PAGE_SIZE 2
|
||||
#else
|
||||
#error "Unsupported processor for flash.c"
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue