|
#define | RTC_CR_UPDTIM (0x1u << 0) |
| (RTC_CR) Update Request Time Register
|
|
#define | RTC_CR_UPDCAL (0x1u << 1) |
| (RTC_CR) Update Request Calendar Register
|
|
#define | RTC_CR_TIMEVSEL_Pos 8 |
|
#define | RTC_CR_TIMEVSEL_Msk (0x3u << RTC_CR_TIMEVSEL_Pos) |
| (RTC_CR) Time Event Selection
|
|
#define | RTC_CR_TIMEVSEL_MINUTE (0x0u << 8) |
| (RTC_CR) Minute change
|
|
#define | RTC_CR_TIMEVSEL_HOUR (0x1u << 8) |
| (RTC_CR) Hour change
|
|
#define | RTC_CR_TIMEVSEL_MIDNIGHT (0x2u << 8) |
| (RTC_CR) Every day at midnight
|
|
#define | RTC_CR_TIMEVSEL_NOON (0x3u << 8) |
| (RTC_CR) Every day at noon
|
|
#define | RTC_CR_CALEVSEL_Pos 16 |
|
#define | RTC_CR_CALEVSEL_Msk (0x3u << RTC_CR_CALEVSEL_Pos) |
| (RTC_CR) Calendar Event Selection
|
|
#define | RTC_CR_CALEVSEL_WEEK (0x0u << 16) |
| (RTC_CR) Week change (every Monday at time 00:00:00)
|
|
#define | RTC_CR_CALEVSEL_MONTH (0x1u << 16) |
| (RTC_CR) Month change (every 01 of each month at time 00:00:00)
|
|
#define | RTC_CR_CALEVSEL_YEAR (0x2u << 16) |
| (RTC_CR) Year change (every January 1 at time 00:00:00)
|
|
#define | RTC_MR_HRMOD (0x1u << 0) |
| (RTC_MR) 12-/24-hour Mode
|
|
#define | RTC_TIMR_SEC_Pos 0 |
|
#define | RTC_TIMR_SEC_Msk (0x7fu << RTC_TIMR_SEC_Pos) |
| (RTC_TIMR) Current Second
|
|
#define | RTC_TIMR_SEC(value) ((RTC_TIMR_SEC_Msk & ((value) << RTC_TIMR_SEC_Pos))) |
|
#define | RTC_TIMR_MIN_Pos 8 |
|
#define | RTC_TIMR_MIN_Msk (0x7fu << RTC_TIMR_MIN_Pos) |
| (RTC_TIMR) Current Minute
|
|
#define | RTC_TIMR_MIN(value) ((RTC_TIMR_MIN_Msk & ((value) << RTC_TIMR_MIN_Pos))) |
|
#define | RTC_TIMR_HOUR_Pos 16 |
|
#define | RTC_TIMR_HOUR_Msk (0x3fu << RTC_TIMR_HOUR_Pos) |
| (RTC_TIMR) Current Hour
|
|
#define | RTC_TIMR_HOUR(value) ((RTC_TIMR_HOUR_Msk & ((value) << RTC_TIMR_HOUR_Pos))) |
|
#define | RTC_TIMR_AMPM (0x1u << 22) |
| (RTC_TIMR) Ante Meridiem Post Meridiem Indicator
|
|
#define | RTC_CALR_CENT_Pos 0 |
|
#define | RTC_CALR_CENT_Msk (0x7fu << RTC_CALR_CENT_Pos) |
| (RTC_CALR) Current Century
|
|
#define | RTC_CALR_CENT(value) ((RTC_CALR_CENT_Msk & ((value) << RTC_CALR_CENT_Pos))) |
|
#define | RTC_CALR_YEAR_Pos 8 |
|
#define | RTC_CALR_YEAR_Msk (0xffu << RTC_CALR_YEAR_Pos) |
| (RTC_CALR) Current Year
|
|
#define | RTC_CALR_YEAR(value) ((RTC_CALR_YEAR_Msk & ((value) << RTC_CALR_YEAR_Pos))) |
|
#define | RTC_CALR_MONTH_Pos 16 |
|
#define | RTC_CALR_MONTH_Msk (0x1fu << RTC_CALR_MONTH_Pos) |
| (RTC_CALR) Current Month
|
|
#define | RTC_CALR_MONTH(value) ((RTC_CALR_MONTH_Msk & ((value) << RTC_CALR_MONTH_Pos))) |
|
#define | RTC_CALR_DAY_Pos 21 |
|
#define | RTC_CALR_DAY_Msk (0x7u << RTC_CALR_DAY_Pos) |
| (RTC_CALR) Current Day in Current Week
|
|
#define | RTC_CALR_DAY(value) ((RTC_CALR_DAY_Msk & ((value) << RTC_CALR_DAY_Pos))) |
|
#define | RTC_CALR_DATE_Pos 24 |
|
#define | RTC_CALR_DATE_Msk (0x3fu << RTC_CALR_DATE_Pos) |
| (RTC_CALR) Current Day in Current Month
|
|
#define | RTC_CALR_DATE(value) ((RTC_CALR_DATE_Msk & ((value) << RTC_CALR_DATE_Pos))) |
|
#define | RTC_TIMALR_SEC_Pos 0 |
|
#define | RTC_TIMALR_SEC_Msk (0x7fu << RTC_TIMALR_SEC_Pos) |
| (RTC_TIMALR) Second Alarm
|
|
#define | RTC_TIMALR_SEC(value) ((RTC_TIMALR_SEC_Msk & ((value) << RTC_TIMALR_SEC_Pos))) |
|
#define | RTC_TIMALR_SECEN (0x1u << 7) |
| (RTC_TIMALR) Second Alarm Enable
|
|
#define | RTC_TIMALR_MIN_Pos 8 |
|
#define | RTC_TIMALR_MIN_Msk (0x7fu << RTC_TIMALR_MIN_Pos) |
| (RTC_TIMALR) Minute Alarm
|
|
#define | RTC_TIMALR_MIN(value) ((RTC_TIMALR_MIN_Msk & ((value) << RTC_TIMALR_MIN_Pos))) |
|
#define | RTC_TIMALR_MINEN (0x1u << 15) |
| (RTC_TIMALR) Minute Alarm Enable
|
|
#define | RTC_TIMALR_HOUR_Pos 16 |
|
#define | RTC_TIMALR_HOUR_Msk (0x3fu << RTC_TIMALR_HOUR_Pos) |
| (RTC_TIMALR) Hour Alarm
|
|
#define | RTC_TIMALR_HOUR(value) ((RTC_TIMALR_HOUR_Msk & ((value) << RTC_TIMALR_HOUR_Pos))) |
|
#define | RTC_TIMALR_AMPM (0x1u << 22) |
| (RTC_TIMALR) AM/PM Indicator
|
|
#define | RTC_TIMALR_HOUREN (0x1u << 23) |
| (RTC_TIMALR) Hour Alarm Enable
|
|
#define | RTC_CALALR_MONTH_Pos 16 |
|
#define | RTC_CALALR_MONTH_Msk (0x1fu << RTC_CALALR_MONTH_Pos) |
| (RTC_CALALR) Month Alarm
|
|
#define | RTC_CALALR_MONTH(value) ((RTC_CALALR_MONTH_Msk & ((value) << RTC_CALALR_MONTH_Pos))) |
|
#define | RTC_CALALR_MTHEN (0x1u << 23) |
| (RTC_CALALR) Month Alarm Enable
|
|
#define | RTC_CALALR_DATE_Pos 24 |
|
#define | RTC_CALALR_DATE_Msk (0x3fu << RTC_CALALR_DATE_Pos) |
| (RTC_CALALR) Date Alarm
|
|
#define | RTC_CALALR_DATE(value) ((RTC_CALALR_DATE_Msk & ((value) << RTC_CALALR_DATE_Pos))) |
|
#define | RTC_CALALR_DATEEN (0x1u << 31) |
| (RTC_CALALR) Date Alarm Enable
|
|
#define | RTC_SR_ACKUPD (0x1u << 0) |
| (RTC_SR) Acknowledge for Update
|
|
#define | RTC_SR_ALARM (0x1u << 1) |
| (RTC_SR) Alarm Flag
|
|
#define | RTC_SR_SEC (0x1u << 2) |
| (RTC_SR) Second Event
|
|
#define | RTC_SR_TIMEV (0x1u << 3) |
| (RTC_SR) Time Event
|
|
#define | RTC_SR_CALEV (0x1u << 4) |
| (RTC_SR) Calendar Event
|
|
#define | RTC_SCCR_ACKCLR (0x1u << 0) |
| (RTC_SCCR) Acknowledge Clear
|
|
#define | RTC_SCCR_ALRCLR (0x1u << 1) |
| (RTC_SCCR) Alarm Clear
|
|
#define | RTC_SCCR_SECCLR (0x1u << 2) |
| (RTC_SCCR) Second Clear
|
|
#define | RTC_SCCR_TIMCLR (0x1u << 3) |
| (RTC_SCCR) Time Clear
|
|
#define | RTC_SCCR_CALCLR (0x1u << 4) |
| (RTC_SCCR) Calendar Clear
|
|
#define | RTC_IER_ACKEN (0x1u << 0) |
| (RTC_IER) Acknowledge Update Interrupt Enable
|
|
#define | RTC_IER_ALREN (0x1u << 1) |
| (RTC_IER) Alarm Interrupt Enable
|
|
#define | RTC_IER_SECEN (0x1u << 2) |
| (RTC_IER) Second Event Interrupt Enable
|
|
#define | RTC_IER_TIMEN (0x1u << 3) |
| (RTC_IER) Time Event Interrupt Enable
|
|
#define | RTC_IER_CALEN (0x1u << 4) |
| (RTC_IER) Calendar Event Interrupt Enable
|
|
#define | RTC_IDR_ACKDIS (0x1u << 0) |
| (RTC_IDR) Acknowledge Update Interrupt Disable
|
|
#define | RTC_IDR_ALRDIS (0x1u << 1) |
| (RTC_IDR) Alarm Interrupt Disable
|
|
#define | RTC_IDR_SECDIS (0x1u << 2) |
| (RTC_IDR) Second Event Interrupt Disable
|
|
#define | RTC_IDR_TIMDIS (0x1u << 3) |
| (RTC_IDR) Time Event Interrupt Disable
|
|
#define | RTC_IDR_CALDIS (0x1u << 4) |
| (RTC_IDR) Calendar Event Interrupt Disable
|
|
#define | RTC_IMR_ACK (0x1u << 0) |
| (RTC_IMR) Acknowledge Update Interrupt Mask
|
|
#define | RTC_IMR_ALR (0x1u << 1) |
| (RTC_IMR) Alarm Interrupt Mask
|
|
#define | RTC_IMR_SEC (0x1u << 2) |
| (RTC_IMR) Second Event Interrupt Mask
|
|
#define | RTC_IMR_TIM (0x1u << 3) |
| (RTC_IMR) Time Event Interrupt Mask
|
|
#define | RTC_IMR_CAL (0x1u << 4) |
| (RTC_IMR) Calendar Event Interrupt Mask
|
|
#define | RTC_VER_NVTIM (0x1u << 0) |
| (RTC_VER) Non-valid Time
|
|
#define | RTC_VER_NVCAL (0x1u << 1) |
| (RTC_VER) Non-valid Calendar
|
|
#define | RTC_VER_NVTIMALR (0x1u << 2) |
| (RTC_VER) Non-valid Time Alarm
|
|
#define | RTC_VER_NVCALALR (0x1u << 3) |
| (RTC_VER) Non-valid Calendar Alarm
|
|
#define | RTC_WPMR_WPEN (0x1u << 0) |
| (RTC_WPMR) Write Protect Enable
|
|
#define | RTC_WPMR_WPKEY_Pos 8 |
|
#define | RTC_WPMR_WPKEY_Msk (0xffffffu << RTC_WPMR_WPKEY_Pos) |
| (RTC_WPMR)
|
|
#define | RTC_WPMR_WPKEY(value) ((RTC_WPMR_WPKEY_Msk & ((value) << RTC_WPMR_WPKEY_Pos))) |
|