41 #define IAP_MAGIC_WORD_1 0x1122
42 #define IAP_MAGIC_WORD_2 0xAA55
43 #define IAP_MAGIC_WORD_3 0xBB11
45 #define UPPERWORD16(lw) (uint16_t)((uint32_t)(lw)>>16)
46 #define LOWERWORD16(lw) (uint16_t)((uint32_t)(lw)&0x0000ffff)
47 #define UPPERBYTE(w) (uint8_t)((w)>>8)
48 #define LOWERBYTE(w) (uint8_t)((w)&0x00ff)
72 RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_CRC, ENABLE);
75 RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE);
76 RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_BKPSRAM, ENABLE);
79 PWR_BackupAccessCmd(ENABLE);
82 RTC_ClearFlag(RTC_FLAG_TAMP1F);
91 uint32_t retval =
false;
113 uint32_t retval =
false;
uint32_t PIOS_IAP_CheckRequest(void)
Determines if an In-Application-Programming request has been made.
Main PiOS header to include all the compiled in PiOS options.
uint16_t PIOS_IAP_ReadBootCount(void)
void PIOS_IAP_Init(void)
PIOS_IAP_Init - performs required initializations for iap module.
void PIOS_IAP_SetRequest3(void)
void PIOS_IAP_ClearRequest(void)
uint32_t PIOS_Boot_CheckRequest(void)
Determines if a boot request has been made.
void PIOS_IAP_WriteBootCount(uint16_t)
void PIOS_IAP_SetRequest2(void)
void PIOS_IAP_SetRequest1(void)
Sets the 1st word of the request sequence.