1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Improve flashfs codegen by fixing pagesize at a constant 256 bytes

This commit is contained in:
Nicholas Sherlock 2015-07-05 14:10:12 +12:00
parent cfdb1bdc56
commit 8a06849657
4 changed files with 8 additions and 16 deletions

View file

@ -23,7 +23,7 @@ typedef struct flashGeometry_t {
uint16_t sectors; // Count of the number of erasable blocks on the device
uint16_t pagesPerSector;
uint16_t pageSize; // In bytes
const uint16_t pageSize; // In bytes
uint32_t sectorSize; // This is just pagesPerSector * pageSize