void RTC_EXTI_INITIAL(FunctionalState interrupt_en_or_dis)
{
//-----------EXTI configuration -------------------
//------------ set up interrupt-------------------
//------------------------------------------
}
void RTC_SET_ALARM(u32 sec)
{
//DEBUG_COM_STREAM("-Alarm-",NULL);
RTC_SetAlarm(RTC_GetCounter()+sec);
//DEBUG_COM_STREAM("-Alarm1-",NULL);
RTC_WaitForLastTask();
//DEBUG_COM_STREAM("-Alarm2-",NULL);
RTC_ITConfig(RTC_FLAG_ALR,ENABLE);
}
void RTC_AWU_SET(void)
{
//Enable PWR and BKP clocks (from APB1)
RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR | RCC_APB1Periph_BKP, ENABLE);
//Unlock backup domain
PWR_BackupAccessCmd(ENABLE);
RTC_ITConfig(RTC_IT_SEC, DISABLE);
RTC_SET_ALARM(5);
//PWR_BackupAccessCmd(DISABLE);
RTC_EXTI_INITIAL(ENABLE);
}
void RTCAlarm_IRQHandler(void)
{
//SYS.wake_id|=1<<17;
}
void RTC_IRQHandler(void)
{
}
Previous article:STM32_TEST.axf: Error: L6218E: Undefi
Next article:STM32 general timer introduction
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- Let’s talk about the “Three Musketeers” of radar in autonomous driving
- Why software-defined vehicles transform cars from tools into living spaces
- IEEE Top Programming Language Rankings 2021
- Tell us what information you need and we will serve you
- Why do we need to add an external EEPROM when using some MCUs?
- Tony teacher perfectly supports esp32-c3
- [Domestic RISC-V Linux Board Fang·Starlight VisionFive Trial Report] Unboxing
- Diode + PPTC battery reverse connection protection circuit, what are the advantages and disadvantages of this circuit?
- Sipeed MAIX (K210) crowdfunded on indiegogo
- How to define the serial port corresponding to GPIO?
- Is this because the engineer is bored or is he looking for inspiration?
- S9KEAZN8AMTG Software Programming