mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Improved structure alignments
This commit is contained in:
parent
b1ec3d04f2
commit
0ddc4540cd
4 changed files with 7 additions and 18 deletions
|
@ -22,13 +22,10 @@
|
|||
|
||||
typedef struct flashGeometry_s {
|
||||
uint16_t sectors; // Count of the number of erasable blocks on the device
|
||||
|
||||
uint16_t pagesPerSector;
|
||||
const uint16_t pageSize; // In bytes
|
||||
|
||||
uint32_t sectorSize; // This is just pagesPerSector * pageSize
|
||||
|
||||
uint32_t totalSize; // This is just sectorSize * sectors
|
||||
uint16_t pagesPerSector;
|
||||
} flashGeometry_t;
|
||||
|
||||
typedef struct flashConfig_s {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue