Skip to content

Commit

Permalink
AP_Logger: support GD25Q16E flash
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Sep 18, 2024
1 parent b8fb3d0 commit 6cfd2cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Logger/AP_Logger_Flash_JEDEC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ extern const AP_HAL::HAL& hal;
#define JEDEC_ID_WINBOND_W25Q256 0xEF4019
#define JEDEC_ID_WINBOND_W25Q128_2 0xEF7018
#define JEDEC_ID_CYPRESS_S25FL128L 0x016018
#define JEDEC_ID_GIGA_GD25Q16E 0xC84015

void AP_Logger_Flash_JEDEC::Init()
{
Expand Down Expand Up @@ -121,6 +122,7 @@ bool AP_Logger_Flash_JEDEC::getSectorCount(void)
switch (id) {
case JEDEC_ID_WINBOND_W25Q16:
case JEDEC_ID_MICRON_M25P16:
case JEDEC_ID_GIGA_GD25Q16E:
blocks = 32;
df_PagePerBlock = 256;
df_PagePerSector = 16;
Expand Down

0 comments on commit 6cfd2cd

Please sign in to comment.