98 #if defined (STM32F2XX) || defined (STM32F4XX) 100 if (Add < 0x08004000)
104 else if (Add < 0x08008000)
108 else if (Add < 0x0800C000)
112 else if (Add < 0x08010000)
116 else if (Add < 0x08020000)
120 else if (Add < 0x08040000)
124 else if (Add < 0x08060000)
128 else if (Add < 0x08080000)
132 else if (Add < 0x080A0000)
136 else if (Add < 0x080C0000)
140 else if (Add < 0x080E0000)
144 else if (Add < 0x08100000)
152 #elif defined(STM32F10X_CL) 173 for (idx = Len; idx < ((Len & 0xFFFC) + 4); idx++)
180 for (idx = 0; idx < Len; idx = idx + 4)
197 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 199 for (idx = 0; idx < Len; idx += 4)
201 *(uint32_t*)(
MAL_Buffer + idx) = *(uint32_t *)(Add + idx);
205 return (uint8_t *)(Add);
uint16_t FLASH_If_DeInit(void)
FLASH_If_DeInit Memory deinitialization routine.
uint16_t FLASH_If_Erase(uint32_t Add)
void FLASH_Unlock(void)
Unlocks the FLASH control register access.
uint16_t FLASH_If_Init(void)
FLASH_If_Init Memory initialization routine.
uint16_t FLASH_If_Write(uint32_t Add, uint32_t Len)
FLASH_If_Write Memory write routine.
uint8_t MAL_Buffer[XFERSIZE]
uint8_t * FLASH_If_Read(uint32_t Add, uint32_t Len)
FLASH_If_Read Memory read routine.
uint16_t FLASH_If_CheckAdd(uint32_t Add)
FLASH_If_CheckAdd Check if the address is an allowed address for this memory.
Header for usbd_dfu_mal.c file.
DFU_MAL_Prop_TypeDef DFU_Flash_cb
Header for usbd_flash_if.c file.
FLASH_Status FLASH_ErasePage(uint32_t Page_Address)
Erases a specified FLASH page.
FLASH_Status FLASH_ProgramWord(uint32_t Address, uint32_t Data)
Programs a word at a specified address.
void FLASH_Lock(void)
Locks the FLASH control register access.
FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange)
Erases a specified FLASH Sector.