예제 #1
0
파일: main.c 프로젝트: LiosonLiu/LoRa
//=====================================
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);
}
예제 #2
0
void FLASH_init(void) {
    FLASH_DeInit();
    FLASH_SetProgrammingTime(FLASH_PROGRAMTIME_STANDARD);
}