We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb62778 commit 61d00d8Copy full SHA for 61d00d8
targets/TARGET_STM/TARGET_STM32G4/flash_api.c
@@ -48,7 +48,7 @@ static uint32_t GetPage(uint32_t Addr)
48
static uint32_t GetBank(uint32_t Addr)
49
{
50
uint32_t bank = 0;
51
-#if defined(SYSCFG_MEMRMP_FB_MODE) && defined(FLASH_OPTR_DBANK)
+#if defined (FLASH_OPTR_DBANK)
52
if (READ_BIT(SYSCFG->MEMRMP, SYSCFG_MEMRMP_FB_MODE) == 0) {
53
/* No Bank swap */
54
if (Addr < (FLASH_BASE + FLASH_BANK_SIZE)) {
@@ -106,7 +106,6 @@ int32_t flash_erase_sector(flash_t *obj, uint32_t address)
106
int32_t status = 0;
107
108
if ((address >= (FLASH_BASE + FLASH_SIZE)) || (address < FLASH_BASE)) {
109
-
110
return -1;
111
}
112
0 commit comments