From 529dec96e9c0b10c9ef62dc6f49e43da602448e0 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 18 Sep 2024 15:20:08 +0100 Subject: [PATCH] AP_Logger: support GD25Q16E flash --- libraries/AP_Logger/AP_Logger_Flash_JEDEC.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Logger/AP_Logger_Flash_JEDEC.cpp b/libraries/AP_Logger/AP_Logger_Flash_JEDEC.cpp index 025c53e3093ca..f03019765ca5c 100644 --- a/libraries/AP_Logger/AP_Logger_Flash_JEDEC.cpp +++ b/libraries/AP_Logger/AP_Logger_Flash_JEDEC.cpp @@ -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() { @@ -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;