72 for (idx = Len; idx < ((Len & 0xFFFC) + 4); idx++)
79 for (idx = 0; idx < Len; idx = idx + 4)
96 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 98 for (idx = 0; idx < Len; idx += 4)
100 *(uint32_t*)(
MAL_Buffer + idx) = *(uint32_t *)(Add + idx);
104 return (uint8_t*)(Add);
uint8_t * OTP_If_Read(uint32_t Add, uint32_t Len)
OTP_If_Read Memory read routine.
uint8_t MAL_Buffer[XFERSIZE]
uint16_t OTP_If_CheckAdd(uint32_t Add)
OTP_If_CheckAdd Check if the address is an allowed address for this memory.
DFU_MAL_Prop_TypeDef DFU_Otp_cb
Header for usbd_otp_if.c file.
Header for usbd_dfu_mal.c file.
uint16_t OTP_If_Write(uint32_t Add, uint32_t Len)
OTP_If_Write Memory write routine.
uint16_t OTP_If_DeInit(void)
FLASH_Status FLASH_ProgramWord(uint32_t Address, uint32_t Data)
Programs a word at a specified address.