1
0
Fork 0
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:
Nicholas Sherlock 2015-03-12 20:40:40 +13:00
parent f24782b961
commit 01b811cd8c
3 changed files with 45 additions and 24 deletions

View file

@ -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;