//===================================== void mcu_init(void) //===================================== { CLK_Init();// base clock power_on_delay(); //Power on delay GPIO_Init(); TIM_Init(); //reset LoRa PD_ODR=0b00000000; delay_ms(20); PD_ODR=0b00000100; delay_ms(20); FLASH_DeInit(); FLASH_Unlock(FLASH_MEMTYPE_DATA); }
void FLASH_init(void) { FLASH_DeInit(); FLASH_SetProgrammingTime(FLASH_PROGRAMTIME_STANDARD); }