Go to the source code of this file.
◆ PL031_RTC_DESCRIPTION
| #define PL031_RTC_DESCRIPTION "ARM PrimeCell PL031 Real Time Clock" |
Description of PL031 device.
PL031 specific constants
◆ PL031_MIN_TIME
Time starts at 01/01/1970 00:00:00 (MM/DD/YY HH:MM:SS).
◆ PL031_MAX_TIME
| #define PL031_MAX_TIME 137919572470000000 |
Time ends at 19/1/2038 03:14:07 (MM/DD/YY HH:MM:SS).
◆ PL031_RTC_CR_EN
| #define PL031_RTC_CR_EN (1 << 0) |
If set to 1, the RTC is enabled. Once it is enabled, any writes to this bit have no effect on the RTC until a system reset. A read returns the status of the RTC.
PL031 RTC Control register bits
◆ PL031_RTC_IMSC_INTR_SET
| #define PL031_RTC_IMSC_INTR_SET (1 << 0) |
PL031 RTC Interrupt mask set and clear register bits
◆ PL031_RTC_IMSC_INTR_CLEAR
| #define PL031_RTC_IMSC_INTR_CLEAR (0 << 0) |
◆ PL031_RTC_RIS_INTR
| #define PL031_RTC_RIS_INTR (1 << 0) |
PL031 RTC Raw interrupt status register bits
◆ PL031_RTC_MIS_INTR
| #define PL031_RTC_MIS_INTR (1 << 0) |
PL031 RTC Masked interrupt status register bits
◆ PL031_RTC_ICR_INTR
| #define PL031_RTC_ICR_INTR (1 << 0) |
PL031 RTC Interrupt clear register bits
◆ PL031_RTC_REGISTERS
◆ PL031_RTC
◆ pl031_rtc_create()
Create, register and start a new PL031 RTC device which can be accessed using the RTC API.
PL031 Functions
- Parameters
-
| Address | The address of the PL031 registers |
| Name | The text description of this device which will show in the device list (Optional) |
| IRQ | The interrupt number for the PL031 |
- Returns
- Pointer to the new RTC device or nil if the RTC device could not be created
◆ pl031_rtc_destroy()
Stop, deregister and destroy a PL031 RTC device created by this driver.
- Parameters
-
| RTC | The RTC device to destroy |
- Returns
- ERROR_SUCCESS if completed or another error code on failure