|
|
@@ -70,6 +70,10 @@ void enable_mcu_power(void){
|
|
|
rcu_periph_clock_enable(RCU_GPIOA);
|
|
|
gpio_mode_output(GPIOA, GPIO_PUPD_NONE, GPIO_OTYPE_PP, GPIO_OSPEED_10MHZ, GPIO_PIN_11);
|
|
|
gpio_bit_write(GPIOA,GPIO_PIN_11,SET);
|
|
|
+ //DC-DC power good indicat
|
|
|
+ rcu_periph_clock_enable(RCU_GPIOF);
|
|
|
+ gpio_mode_input(GPIOF, GPIO_PUPD_NONE, GPIO_PIN_7);
|
|
|
+ while(!IS_DCDC_POWER_GOOD());
|
|
|
}
|
|
|
|
|
|
static void enable_exti4_15_irq(int enable){
|