kopia lustrzana https://github.com/SP8EBC/ParaTNC
first working prototype of freezing micro in STOP2
rodzic
13de42e7e0
commit
d12b2c4dae
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="ilg.gnumcueclipse.debug.gdbjtag.openocd.launchConfigurationType">
|
||||
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.PERIPHERALS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <peripherals> <peripheral name="RTC"/> <peripheral name="FLASH"/> <peripheral name="SCB"/> <peripheral name="DBGMCU"/> <peripheral name="EXTI"/> <peripheral name="PWR"/> <peripheral name="USART2"/> </peripherals> "/>
|
||||
<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.PERIPHERALS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <peripherals> <peripheral name="RTC"/> <peripheral name="FLASH"/> <peripheral name="DBGMCU"/> <peripheral name="EXTI"/> <peripheral name="PWR"/> <peripheral name="USART2"/> <peripheral name="SCB"/> </peripherals> "/>
|
||||
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.openocd.doContinue" value="true"/>
|
||||
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.openocd.doDebugInRam" value="false"/>
|
||||
<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.openocd.doFirstReset" value="true"/>
|
||||
|
|
|
@ -87,6 +87,14 @@ void RTC_WKUP_IRQHandler(void) {
|
|||
RTC->ISR &= (0xFFFFFFFF ^ RTC_ISR_WUTF_Msk);
|
||||
|
||||
EXTI->PR1 |= EXTI_PR1_PIF20;
|
||||
|
||||
system_clock_configure_l4();
|
||||
|
||||
led_flip_led1_upper();
|
||||
|
||||
led_flip_led2_bottom();
|
||||
|
||||
led_control_led1_upper(true);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -199,7 +207,7 @@ void TIM7_IRQHandler(void) {
|
|||
// io_ext_watchdog_service();
|
||||
AdcValue = (short int)(( AdcBuffer[0] + AdcBuffer[1] + AdcBuffer[2] + AdcBuffer[3]) >> 1);
|
||||
AFSK_ADC_ISR(&main_afsk, (AdcValue - 4095) );
|
||||
led_control_led1_upper(main_ax25.dcd);
|
||||
led_control_led1_upper(main_ax25.dcd); // TODO
|
||||
ASC = 0;
|
||||
|
||||
if (ASC2++ == 2) {
|
||||
|
|
|
@ -87,9 +87,10 @@ void pwr_save_enter_stop2(void) {
|
|||
DBGMCU->CR &= (0xFFFFFFFF ^ (DBGMCU_CR_DBG_SLEEP_Msk | DBGMCU_CR_DBG_STOP_Msk | DBGMCU_CR_DBG_STANDBY_Msk));
|
||||
|
||||
// disabling all IRQs
|
||||
__disable_irq();
|
||||
//__disable_irq();
|
||||
|
||||
asm ("wfe");
|
||||
asm("sev");
|
||||
asm("wfi");
|
||||
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue