RTC driver for the calendar RTC of the STM32H7, in the backup domain: it keeps counting across resets and in Standby.
More...
|
| #define | PBL_RTC_STM32_DEFINE(sym, _name, _base, _pclk, _clk, _exti, _exti_line, _irq) |
| | Define the RTC.
|
| |
RTC driver for the calendar RTC of the STM32H7, in the backup domain: it keeps counting across resets and in Standby.
◆ pbl_rtc_stm32_state
| struct pbl_rtc_stm32_state |
◆ pbl_rtc_stm32
◆ PBL_RTC_STM32_DEFINE
| #define PBL_RTC_STM32_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_base, |
|
|
|
_pclk, |
|
|
|
_clk, |
|
|
|
_exti, |
|
|
|
_exti_line, |
|
|
|
_irq |
|
) |
| |
Value:
.rtc =
PBL_RTC_INIT(sym, _name, pbl_rtc_stm32_init,
nullptr, &pbl_rtc_stm32_ops), \
.base = (_base), \
.pclk = _pclk, \
.clk = _clk, \
.exti = (_exti), \
.exti_line = (_exti_line), \
.irq = (_irq), \
.state = &sym##_rtc_state, \
}; \
PBL_IRQ_CONNECT_NUM(_irq, CONFIG_RTC_STM32_IRQ_PRIO, pbl_rtc_stm32_isr, &sym##_inst, 0)
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:132
STM32 RTC state.
Definition stm32.h:21
STM32 RTC.
Definition stm32.h:29
#define PBL_RTC_INIT(sym, _name, _init, _parent, _ops)
Initialize a struct pbl_rtc.
Definition rtc.h:84
Define the RTC.
- Parameters
-
| sym | Symbol. |
| _name | Device name. |
| _base | Registers. |
| _pclk | Bus clock, from PBL_CLK(). |
| _clk | Kernel clock, from PBL_CLK(). |
| _exti | EXTI registers. |
| _exti_line | EXTI line of the alarms. |
| _irq | Alarm interrupt. |