32 #if defined(PIOS_INCLUDE_BL_HELPER)
34 #include "stm32f10x_flash.h"
38 return (uint8_t *) (SectorAddress);
41 #if defined(PIOS_INCLUDE_BL_HELPER_WRITE_SUPPORT)
51 uint32_t pageAdress = bdinfo->
fw_base;
56 if (FLASH_ErasePage(pageAdress) == FLASH_COMPLETE) {
66 #elif defined (STM32F10X_MD)
71 return (fail ==
true) ? 0 : 1;
81 CRC_CalcBlockCRC((uint32_t *) bdinfo->
fw_base, (bdinfo->
fw_size) >> 2);
98 RCC_AHBPeriphClockCmd(RCC_AHBPeriph_CRC, ENABLE);
uint8_t * PIOS_BL_HELPER_FLASH_If_Read(uint32_t SectorAddress)
Main PiOS header to include all the compiled in PiOS options.
uint32_t PIOS_BL_HELPER_CRC_Memory_Calc()
const struct pios_board_info pios_board_info_blob
void PIOS_BL_HELPER_FLASH_Read_Description(uint8_t *array, uint8_t size)
void PIOS_BL_HELPER_CRC_Ini()
uint8_t PIOS_BL_HELPER_FLASH_Ini()
uint8_t PIOS_BL_HELPER_FLASH_Start()