mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Add support for Winbond 64Mbit SPI flash chip
This commit is contained in:
parent
f24782b961
commit
01b811cd8c
3 changed files with 45 additions and 24 deletions
|
@ -20,12 +20,12 @@
|
|||
#include <stdint.h>
|
||||
|
||||
typedef struct flashGeometry_t {
|
||||
uint8_t sectors;
|
||||
uint8_t sectors; // Count of the number of erasable blocks on the device
|
||||
|
||||
uint16_t pagesPerSector;
|
||||
uint16_t pageSize;
|
||||
uint16_t pageSize; // In bytes
|
||||
|
||||
uint32_t sectorSize;
|
||||
uint32_t sectorSize; // This is just pagesPerSector * pageSize
|
||||
|
||||
uint32_t totalSize;
|
||||
uint32_t totalSize; // This is just sectorSize * sectors
|
||||
} flashGeometry_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue