mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cc26x2_cc13x2: add AON_RTC definitions
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
This commit is contained in:
parent
20439cc3cc
commit
1bb689ff45
@ -104,6 +104,42 @@ typedef struct {
|
||||
|
||||
#define AON_PMCTL ((aon_pmctl_regs_t *) (AON_PMCTL_BASE)) /**< AON_PMCTL register bank */
|
||||
|
||||
/**
|
||||
* AON_RTC registers
|
||||
*/
|
||||
typedef struct {
|
||||
reg32_t CTL; /**< Control */
|
||||
reg32_t EVFLAGS; /**< Event Flags, RTC Status */
|
||||
reg32_t SEC; /**< Second Counter Value, Integer Part */
|
||||
reg32_t SUBSEC; /**< Second Counter Value, Fractional Part */
|
||||
reg32_t SUBSECINC; /**< Subseconds Increment */
|
||||
reg32_t CHCTL; /**< Channel Configuration */
|
||||
reg32_t CH0CMP; /**< Channel 0 Compare Value */
|
||||
reg32_t CH1CMP; /**< Channel 1 Compare Value */
|
||||
reg32_t CH2CMP; /**< Channel 2 Compare Value */
|
||||
reg32_t CH2CMPINC; /**< Channel 2 Compare Value Auto-increment */
|
||||
reg32_t CH1CAPT; /**< Channel 1 Capture Value */
|
||||
reg32_t SYNC; /**< AON Synchronization */
|
||||
reg32_t TIME; /**< Current Counter Value */
|
||||
reg32_t SYNCLF; /**< Synchronization to SCLK_LF */
|
||||
} aon_rtc_regs_t;
|
||||
|
||||
/**
|
||||
* @brief RTC_UPD is a 16 KHz signal used to sync up the radio timer. The
|
||||
* 16 Khz is SCLK_LF divided by 2
|
||||
* @details 0h = RTC_UPD signal is forced to 0
|
||||
* 1h = RTC_UPD signal is toggling @16 kHz
|
||||
*/
|
||||
#define AON_RTC_CTL_RTC_UPD_EN 0x00000002
|
||||
|
||||
/** @ingroup cpu_specific_peripheral_memory_map
|
||||
* @{
|
||||
*/
|
||||
#define AON_RTC_BASE (PERIPH_BASE + 0x92000) /**< AON_RTC base address */
|
||||
/** @} */
|
||||
|
||||
#define AON_RTC ((aon_rtc_regs_t *) (AON_RTC_BASE)) /**< AON_RTC register bank */
|
||||
|
||||
/**
|
||||
* PRCM registers
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user