|
SmartSnippets DA1459x SDK
|
Real Time Clock (RTC) More...
Files | |
| file | hw_rtc.h |
| Definition of API for the Real Time Clock Low Level Driver. | |
Data Structures | |
| struct | hw_rtc_calendar_t |
| Calendar configuration for RTC. More... | |
| struct | hw_rtc_alarm_calendar_t |
| Alarm Calendar configuration for RTC. More... | |
| struct | hw_rtc_time_t |
| Time configuration for RTC. More... | |
| struct | hw_rtc_config_pdc_evt_t |
| RTC to Power Domain Controller event configuration. More... | |
Macros | |
| #define | HW_RTC_REG_GETF(reg, field) ((RTC->reg & (RTC_##reg##_##field##_Msk)) >> (RTC_##reg##_##field##_Pos)) |
| Get the value of a field of an RTC register. More... | |
| #define | HW_RTC_REG_SETF(reg, field, val) |
| Set the value of a field of a RTC register. More... | |
| #define | RTC_PDC_EVENT_PERIOD_MAX_VAL 0x1fff |
| Maximum value of RTC to PDC event period (13bits). More... | |
| #define | RTC_ALL_STATUS_VALID 0xf |
| All entries are valid in the RTC status register. More... | |
| #define | RTC_TIME_CLDR_STATUS_VALID 0x3 |
| Time and Calendar entries are valid in the RTC status register. More... | |
| #define | RTC_ALARM_TIME_CLDR_STATUS_VALID 0xc |
| Alarm Time and Calendar entries are valid in the RTC status register. More... | |
Typedefs | |
| typedef void(* | hw_rtc_interrupt_cb) (uint8_t event) |
| Callback that is fired on RTC events. More... | |
Enumerations | |
| enum | HW_RTC_LP_CLK |
| RTC lp_clk sources. More... | |
| enum | HW_RTC_HOUR_MODE { RTC_24H_CLK = 0, RTC_12H_CLK } |
| Hour clock mode. More... | |
| enum | HW_RTC_DIV_DENOM { RTC_DIV_DENOM_1000 = 0x0, RTC_DIV_DENOM_1024 = 0x1 } |
| RTC denominator for the fractional division of the source clock. More... | |
| enum | HW_RTC_INTR { HW_RTC_INT_ALRM = RTC_RTC_INTERRUPT_MASK_REG_RTC_ALRM_INT_MSK_Msk, HW_RTC_INT_MONTH = RTC_RTC_INTERRUPT_MASK_REG_RTC_MNTH_INT_MSK_Msk, HW_RTC_INT_MDAY = RTC_RTC_INTERRUPT_MASK_REG_RTC_DATE_INT_MSK_Msk, HW_RTC_INT_HOUR = RTC_RTC_INTERRUPT_MASK_REG_RTC_HOUR_INT_MSK_Msk, HW_RTC_INT_MIN = RTC_RTC_INTERRUPT_MASK_REG_RTC_MIN_INT_MSK_Msk, HW_RTC_INT_SEC = RTC_RTC_INTERRUPT_MASK_REG_RTC_SEC_INT_MSK_Msk, HW_RTC_INT_HSEC = RTC_RTC_INTERRUPT_MASK_REG_RTC_HOS_INT_MSK_Msk } |
| RTC interrupt source. More... | |
| enum | HW_RTC_EVENT { HW_RTC_EVENT_ALRM = RTC_RTC_EVENT_FLAGS_REG_RTC_EVENT_ALRM_Msk, HW_RTC_EVENT_MONTH = RTC_RTC_EVENT_FLAGS_REG_RTC_EVENT_MNTH_Msk, HW_RTC_EVENT_MDAY = RTC_RTC_EVENT_FLAGS_REG_RTC_EVENT_DATE_Msk, HW_RTC_EVENT_HOUR = RTC_RTC_EVENT_FLAGS_REG_RTC_EVENT_HOUR_Msk, HW_RTC_EVENT_MIN = RTC_RTC_EVENT_FLAGS_REG_RTC_EVENT_MIN_Msk, HW_RTC_EVENT_SEC = RTC_RTC_EVENT_FLAGS_REG_RTC_EVENT_SEC_Msk, HW_RTC_EVENT_HSEC = RTC_RTC_EVENT_FLAGS_REG_RTC_EVENT_HOS_Msk } |
| RTC Events. More... | |
| enum | HW_RTC_ALARM_EN { HW_RTC_ALARM_MONTH = RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_MNTH_EN_Msk, HW_RTC_ALARM_MDAY = RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_DATE_EN_Msk, HW_RTC_ALARM_HOUR = RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_HOUR_EN_Msk, HW_RTC_ALARM_MIN = RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_MIN_EN_Msk, HW_RTC_ALARM_SEC = RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_SEC_EN_Msk, HW_RTC_ALARM_HSEC = RTC_RTC_ALARM_ENABLE_REG_RTC_ALARM_HOS_EN_Msk } |
| RTC Alarm enable mask. More... | |
| enum | HW_RTC_STATUS { HW_RTC_VALID_CLNDR_ALM = RTC_RTC_STATUS_REG_RTC_VALID_CAL_ALM_Msk, HW_RTC_VALID_TIME_ALM = RTC_RTC_STATUS_REG_RTC_VALID_TIME_ALM_Msk, HW_RTC_VALID_CLNDR = RTC_RTC_STATUS_REG_RTC_VALID_CAL_Msk, HW_RTC_VALID_TIME = RTC_RTC_STATUS_REG_RTC_VALID_TIME_Msk } |
| RTC status. More... | |
| enum | HW_RTC_SET_REG_STATUS { HW_RTC_VALID_ENTRY = 0x1, HW_RTC_INVALID_TIME_HOUR_MODE_ALM = 0x3, HW_RTC_INVALID_CLNDR_ALM = 0x7, HW_RTC_INVALID_TIME_ALM = 0xB, HW_RTC_INVALID_CLNDR = 0xD, HW_RTC_INVALID_TIME = 0xE, HW_RTC_INVALID_TIME_CLNDR = 0xC } |
| RTC status. More... | |
Functions | |
| void | hw_rtc_config_RTC_to_PDC_evt (const hw_rtc_config_pdc_evt_t *cfg) |
| RTC to PDC event configuration. More... | |
| void | hw_rtc_register_intr (hw_rtc_interrupt_cb handler, uint8_t mask) |
| Register an interrupt handler. More... | |
| void | hw_rtc_unregister_intr (void) |
| Unregister the event handler and disable RTC interrupt (NVIC) More... | |
| HW_RTC_SET_REG_STATUS | hw_rtc_set_time_clndr (const hw_rtc_time_t *time, const hw_rtc_calendar_t *clndr) |
| Set RTC time and/or calendar date. More... | |
| __STATIC_INLINE void | hw_rtc_set_time_bcd (uint32_t time_bcd) |
| Set RTC time. More... | |
| __STATIC_INLINE void | hw_rtc_set_clndr_bcd (uint32_t clndr_bcd) |
| Set RTC Calendar date. More... | |
| void | hw_rtc_get_time_clndr (hw_rtc_time_t *time, hw_rtc_calendar_t *clndr) |
| Get RTC time and/or calendar date. More... | |
| __STATIC_INLINE uint32_t | hw_rtc_get_time_bcd (void) |
| Get RTC time. More... | |
| __STATIC_INLINE uint32_t | hw_rtc_get_clndr_bcd (void) |
| Get RTC Calendar date. More... | |
| __STATIC_INLINE void | hw_rtc_time_start (void) |
| Start RTC time. More... | |
| __STATIC_INLINE void | hw_rtc_time_stop (void) |
| Stop RTC time. More... | |
| __STATIC_INLINE void | hw_rtc_clndr_start (void) |
| Start RTC Calendar. More... | |
| __STATIC_INLINE void | hw_rtc_clndr_stop (void) |
| Stop RTC Calendar. More... | |
| __STATIC_INLINE void | hw_rtc_start (void) |
| Start RTC. Starts both time and calendar. More... | |
| __STATIC_INLINE void | hw_rtc_stop (void) |
| Stop RTC. Stops both time and calendar. More... | |
| HW_RTC_SET_REG_STATUS | hw_rtc_set_alarm (const hw_rtc_time_t *time, const hw_rtc_alarm_calendar_t *clndr, const uint8_t mask) |
| Set RTC alarm. More... | |
| __STATIC_INLINE void | hw_rtc_set_alarm_time_bcd (uint32_t time_bcd) |
| Set RTC alarm time. More... | |
| __STATIC_INLINE void | hw_rtc_set_alarm_clndr_bcd (uint32_t clndr_bcd) |
| Set RTC alarm Calendar. More... | |
| void | hw_rtc_get_alarm (hw_rtc_time_t *time, hw_rtc_alarm_calendar_t *clndr, uint8_t *mask) |
| Get RTC time and/or calendar alarms. More... | |
| __STATIC_INLINE uint32_t | hw_rtc_get_alarm_time_bcd (void) |
| Get RTC alarm time. More... | |
| __STATIC_INLINE uint32_t | hw_rtc_get_alarm_clndr_bcd (void) |
| Get RTC alarm calendar. More... | |
| __STATIC_INLINE void | hw_rtc_alarm_enable (const uint8_t mask) |
| RTC alarm enable. More... | |
| __STATIC_INLINE uint8_t | hw_rtc_get_alarm_enable_msk (void) |
| Get RTC alarm enable bitmask. More... | |
| __STATIC_INLINE void | hw_rtc_interrupt_enable (const uint8_t mask) |
| Enable RTC interrupt(s) More... | |
| __STATIC_INLINE void | hw_rtc_interrupt_disable (const uint8_t mask) |
| Disable RTC interrupt(s) More... | |
| __STATIC_INLINE uint8_t | hw_rtc_get_event_flags (void) |
| Get RTC event flags. More... | |
| __STATIC_INLINE uint8_t | hw_rtc_get_interrupt_mask (void) |
| Get RTC interrupt mask. More... | |
| __STATIC_INLINE void | hw_rtc_set_hour_clk_mode (HW_RTC_HOUR_MODE mode) |
| Set RTC hour clock mode. More... | |
| __STATIC_INLINE HW_RTC_HOUR_MODE | hw_rtc_get_hour_clk_mode (void) |
| Get RTC hour clock mode. More... | |
| __STATIC_INLINE uint8_t | hw_rtc_get_status (void) |
| Get RTC status. More... | |
| __STATIC_INLINE void | hw_rtc_set_keep_reg_on_reset (bool keep) |
| Configure RTC to keep or reset its registers after reset. More... | |
| __STATIC_INLINE bool | hw_rtc_get_keep_reg_on_reset (void) |
| Get RTC keep register status. More... | |
| __STATIC_INLINE void | hw_rtc_pdc_event_enable (void) |
| Enable RTC to Power Domains Controller (PDC) event. More... | |
| __STATIC_INLINE void | hw_rtc_pdc_event_disable (void) |
| Disable RTC to Power Domains Controller event. More... | |
| __STATIC_INLINE bool | hw_rtc_get_pdc_event_cntrl (void) |
| Get status of control of RTC to Power Domains Controller event. More... | |
| __STATIC_INLINE void | hw_rtc_set_pdc_event_period (uint16_t period) |
| Set RTC to PDC event period. More... | |
| __STATIC_INLINE uint16_t | hw_rtc_get_pdc_event_period (void) |
| Get RTC to PDC event period. More... | |
| __STATIC_INLINE bool | hw_rtc_pdc_event_clear (void) |
| Clear RTC to PDC event. More... | |
| __STATIC_INLINE uint16_t | hw_rtc_get_pdc_event_cnt (void) |
| Get PDC event count. More... | |
| __STATIC_INLINE void | hw_rtc_reset (void) |
| Reset RTC module. More... | |
| __STATIC_INLINE void | hw_rtc_reset_set (void) |
| Set RTC reset high. More... | |
| __STATIC_INLINE void | hw_rtc_reset_clear (void) |
| Clear RTC reset. More... | |
| __STATIC_INLINE void | hw_rtc_clk_config (HW_RTC_DIV_DENOM div_denom, uint16_t div_int, uint16_t div_frac) |
| Configure RTC clock. More... | |
| __STATIC_INLINE void | hw_rtc_clock_enable (void) |
| Enable for the 100 Hz generation for the RTC block. More... | |
Real Time Clock (RTC)
| #define HW_RTC_REG_GETF | ( | reg, | |
| field | |||
| ) | ((RTC->reg & (RTC_##reg##_##field##_Msk)) >> (RTC_##reg##_##field##_Pos)) |
Get the value of a field of an RTC register.
| [in] | reg | is the register to access |
| [in] | field | is the register field to read |
| #define HW_RTC_REG_SETF | ( | reg, | |
| field, | |||
| val | |||
| ) |
Set the value of a field of a RTC register.
| [in] | reg | is the register to access |
| [in] | field | is the register field to write |
| [in] | val | is the value to write |
| #define RTC_ALARM_TIME_CLDR_STATUS_VALID 0xc |
Alarm Time and Calendar entries are valid in the RTC status register.
| #define RTC_ALL_STATUS_VALID 0xf |
All entries are valid in the RTC status register.
| #define RTC_PDC_EVENT_PERIOD_MAX_VAL 0x1fff |
Maximum value of RTC to PDC event period (13bits).
| #define RTC_TIME_CLDR_STATUS_VALID 0x3 |
Time and Calendar entries are valid in the RTC status register.
| typedef void(* hw_rtc_interrupt_cb) (uint8_t event) |
Callback that is fired on RTC events.
| [in] | event | bitmask of HW_RTC_EVENT |
| enum HW_RTC_ALARM_EN |
RTC Alarm enable mask.
Can be used as bitmask.
| enum HW_RTC_DIV_DENOM |
| enum HW_RTC_EVENT |
RTC Events.
Can be used as bitmask.
| enum HW_RTC_HOUR_MODE |
| enum HW_RTC_INTR |
RTC interrupt source.
Can be used as bitmask.
| enum HW_RTC_LP_CLK |
RTC lp_clk sources.
RTC status.
Can be used as bitmask.
| enum HW_RTC_STATUS |
RTC status.
Can be used as bitmask.
| __STATIC_INLINE void hw_rtc_alarm_enable | ( | const uint8_t | mask | ) |
RTC alarm enable.
| [in] | mask | bitmask of HW_RTC_ALARM_EN. Set "1" to enable: Bit: | 5 | 4 | 3 | 2 | 1 | 0 | +------—+------—+------—+-----—+-----—+-------—+ Alarm enable: | on month| on mday | on hour | on min | on sec | on hsec | +------—+------—+------—+-----—+-----—+-------—+ |
| __STATIC_INLINE void hw_rtc_clk_config | ( | HW_RTC_DIV_DENOM | div_denom, |
| uint16_t | div_int, | ||
| uint16_t | div_frac | ||
| ) |
Configure RTC clock.
if div_denom = 1, div_frac out of 1024 cycles will divide by (div_int+1), the rest is div_int. If div_denom = 0, div_frac out of 1000 cycles will divide by (div_int+1), the rest is div_int.
| [in] | div_denom | denominator for the fractional division |
| [in] | div_int | integer divisor part for RTC 100Hz generation |
| [in] | div_frac | Fractional divisor part for RTC 100Hz generation |
| __STATIC_INLINE void hw_rtc_clndr_start | ( | void | ) |
Start RTC Calendar.
| __STATIC_INLINE void hw_rtc_clndr_stop | ( | void | ) |
Stop RTC Calendar.
| __STATIC_INLINE void hw_rtc_clock_enable | ( | void | ) |
Enable for the 100 Hz generation for the RTC block.
| void hw_rtc_config_RTC_to_PDC_evt | ( | const hw_rtc_config_pdc_evt_t * | cfg | ) |
RTC to PDC event configuration.
Configures and enables the RTC-to-PDC event.
| [in] | cfg | configuration of the RTC event |
| void hw_rtc_get_alarm | ( | hw_rtc_time_t * | time, |
| hw_rtc_alarm_calendar_t * | clndr, | ||
| uint8_t * | mask | ||
| ) |
Get RTC time and/or calendar alarms.
| [out] | time | returns time alarm. Set NULL if there is no need to read time alarm |
| [out] | clndr | returns calendar alarm. Set NULL if there is no need to read calendar alarm |
| [out] | mask | returns bitmask of HW_RTC_ALARM_EN. Set NULL if there is no need to read bitmask. "1" means the alarm is enabled: Bit: | 5 | 4 | 3 | 2 | 1 | 0 | +------—+------—+------—+-----—+-----—+-------—+ Alarm enable: | on month| on mday | on hour | on min | on sec | on hsec | +------—+------—+------—+-----—+-----—+-------—+ |
| __STATIC_INLINE uint32_t hw_rtc_get_alarm_clndr_bcd | ( | void | ) |
Get RTC alarm calendar.
| __STATIC_INLINE uint8_t hw_rtc_get_alarm_enable_msk | ( | void | ) |
Get RTC alarm enable bitmask.
| __STATIC_INLINE uint32_t hw_rtc_get_alarm_time_bcd | ( | void | ) |
Get RTC alarm time.
| __STATIC_INLINE uint32_t hw_rtc_get_clndr_bcd | ( | void | ) |
Get RTC Calendar date.
| __STATIC_INLINE uint8_t hw_rtc_get_event_flags | ( | void | ) |
Get RTC event flags.
| __STATIC_INLINE HW_RTC_HOUR_MODE hw_rtc_get_hour_clk_mode | ( | void | ) |
Get RTC hour clock mode.
| __STATIC_INLINE uint8_t hw_rtc_get_interrupt_mask | ( | void | ) |
Get RTC interrupt mask.
| __STATIC_INLINE bool hw_rtc_get_keep_reg_on_reset | ( | void | ) |
Get RTC keep register status.
| __STATIC_INLINE uint16_t hw_rtc_get_pdc_event_cnt | ( | void | ) |
Get PDC event count.
| __STATIC_INLINE bool hw_rtc_get_pdc_event_cntrl | ( | void | ) |
Get status of control of RTC to Power Domains Controller event.
| __STATIC_INLINE uint16_t hw_rtc_get_pdc_event_period | ( | void | ) |
Get RTC to PDC event period.
| __STATIC_INLINE uint8_t hw_rtc_get_status | ( | void | ) |
Get RTC status.
When setting the time/calendar or the alarm the entry can be invalid. The status bitmask indicates if the entry was valid or not.
| __STATIC_INLINE uint32_t hw_rtc_get_time_bcd | ( | void | ) |
Get RTC time.
| void hw_rtc_get_time_clndr | ( | hw_rtc_time_t * | time, |
| hw_rtc_calendar_t * | clndr | ||
| ) |
Get RTC time and/or calendar date.
| [out] | time | returns the RTC time. Set NULL if there is no need to read time |
| [out] | clndr | returns the RTC calendar. Set NULL if there is no need to read calendar date |
clndr to NULL, to read time first and then call this function with time to NULL, to read the date. | __STATIC_INLINE void hw_rtc_interrupt_disable | ( | const uint8_t | mask | ) |
Disable RTC interrupt(s)
| [in] | mask | bitmask of available interrupts (HW_RTC_INTR). Set "1" to disable: Bit: | 6 | 5 | 4 | 3 | 2 | 1 | 0 | +-----—+-----—+----—+----—+---—+---—+----—+ Disable irq: |on alarm|on month|on mday|on hour|on min|on sec|on hsec| +-----—+-----—+----—+----—+---—+---—+----—+ |
| __STATIC_INLINE void hw_rtc_interrupt_enable | ( | const uint8_t | mask | ) |
Enable RTC interrupt(s)
| [in] | mask | bitmask of available interrupts (HW_RTC_INTR). Set "1" to enable: Bit: | 6 | 5 | 4 | 3 | 2 | 1 | 0 | +-----—+-----—+----—+----—+---—+---—+----—+ Enable irq: |on alarm|on month|on mday|on hour|on min|on sec|on hsec| +-----—+-----—+----—+----—+---—+---—+----—+ |
| __STATIC_INLINE bool hw_rtc_pdc_event_clear | ( | void | ) |
Clear RTC to PDC event.
| __STATIC_INLINE void hw_rtc_pdc_event_disable | ( | void | ) |
Disable RTC to Power Domains Controller event.
| __STATIC_INLINE void hw_rtc_pdc_event_enable | ( | void | ) |
Enable RTC to Power Domains Controller (PDC) event.
| void hw_rtc_register_intr | ( | hw_rtc_interrupt_cb | handler, |
| uint8_t | mask | ||
| ) |
Register an interrupt handler.
| [in] | handler | callback function to be called when RTC event occurs |
| [in] | mask | initial bitmask of requested interrupt events |
| __STATIC_INLINE void hw_rtc_reset | ( | void | ) |
Reset RTC module.
Software/hardware reset will reset every register except the keep RTC and control registers. If Keep RTC is high, the time and calendar registers and any other registers which directly affect or are affected by the time and calendar registers are NOT reset when software/hardware reset is applied. Calling this function will reset the time and calendar registers, the keep RTC register as well as the event period registers. Application should not call this function
| __STATIC_INLINE void hw_rtc_reset_clear | ( | void | ) |
Clear RTC reset.
| __STATIC_INLINE void hw_rtc_reset_set | ( | void | ) |
Set RTC reset high.
The software reset will reset every register except the keep RTC and control registers. If Keep RTC is high, the time and calendar registers and any other registers which directly affect or are affected by the time and calendar registers are NOT reset when software reset is applied. Calling this function will reset the time and calendar registers, the keep RTC register as well as the event period registers. Application should not call this function
| HW_RTC_SET_REG_STATUS hw_rtc_set_alarm | ( | const hw_rtc_time_t * | time, |
| const hw_rtc_alarm_calendar_t * | clndr, | ||
| const uint8_t | mask | ||
| ) |
Set RTC alarm.
Set time and/or calendar alarms. Enable bitmask mask to select the alarms needed. The alarm interrupt is enabled automatically, an interrupt will be generated when an alarm event occurs.
| [in] | time | time alarm. Can be NULL if only calendar alarm is set |
| [in] | clndr | calendar alarm. Can be NULL if only time alarm is set |
| [in] | mask | bitmask of HW_RTC_ALARM_EN. Set "1" to enable: Bit: | 5 | 4 | 3 | 2 | 1 | 0 | +------—+------—+------—+-----—+-----—+-------—+ Alarm enable: | on month| on mday | on hour | on min | on sec | on hsec | +------—+------—+------—+-----—+-----—+-------—+ |
| __STATIC_INLINE void hw_rtc_set_alarm_clndr_bcd | ( | uint32_t | clndr_bcd | ) |
Set RTC alarm Calendar.
| [in] | clndr_bcd | Calendar date in binary-coded decimal (BCD) format |
| __STATIC_INLINE void hw_rtc_set_alarm_time_bcd | ( | uint32_t | time_bcd | ) |
Set RTC alarm time.
| [in] | time_bcd | time in binary-coded decimal (BCD) format |
| __STATIC_INLINE void hw_rtc_set_clndr_bcd | ( | uint32_t | clndr_bcd | ) |
Set RTC Calendar date.
| [in] | clndr_bcd | Calendar date in binary-coded decimal (BCD) format |
| __STATIC_INLINE void hw_rtc_set_hour_clk_mode | ( | HW_RTC_HOUR_MODE | mode | ) |
Set RTC hour clock mode.
| [in] | mode | 12-hour or 24-hour clock format |
| __STATIC_INLINE void hw_rtc_set_keep_reg_on_reset | ( | bool | keep | ) |
Configure RTC to keep or reset its registers after reset.
| [in] | keep | when true, the time and calendar registers and any other registers which directly affect or are affected by the time and calendar registers are NOT reset when software reset is applied. When false, the software reset will reset every register except the keep RTC and control registers. |
| __STATIC_INLINE void hw_rtc_set_pdc_event_period | ( | uint16_t | period | ) |
Set RTC to PDC event period.
| [in] | period | RTC will send an event to PDC, if RTC to PDC event is enabled, every (period+1)*10ms |
| __STATIC_INLINE void hw_rtc_set_time_bcd | ( | uint32_t | time_bcd | ) |
Set RTC time.
| [in] | time_bcd | time in binary-coded decimal (BCD) format |
| HW_RTC_SET_REG_STATUS hw_rtc_set_time_clndr | ( | const hw_rtc_time_t * | time, |
| const hw_rtc_calendar_t * | clndr | ||
| ) |
Set RTC time and/or calendar date.
time can be NULL if only calendar is set. Also, clndr can be NULL if only time is set.
| [in] | time | value to set the RTC time |
| [in] | clndr | value to set the RTC calendar date |
| __STATIC_INLINE void hw_rtc_start | ( | void | ) |
Start RTC. Starts both time and calendar.
| __STATIC_INLINE void hw_rtc_stop | ( | void | ) |
Stop RTC. Stops both time and calendar.
| __STATIC_INLINE void hw_rtc_time_start | ( | void | ) |
Start RTC time.
| __STATIC_INLINE void hw_rtc_time_stop | ( | void | ) |
Stop RTC time.
| void hw_rtc_unregister_intr | ( | void | ) |
Unregister the event handler and disable RTC interrupt (NVIC)
This function disables all RTC interrupts by masking them. In addition it clears any pending ones on the ARM core. The status of RAW_INTR_STAT_REG remains unchanged.
1.8.16