• Jeffrey Lee's avatar
    Add HAL RTC support to Cortex branch of kernel, clean up RTCSupport code · 7f21e480
    Jeffrey Lee authored
    Detail:
      HAL kernels (on the Cortex branch at least) now support HALDevice-based RTCs. If the kernels own RTC code is disabled or fails to detect an RTC, then after HAL_InitDevices is called the HALDevice list will be scanned for any HAL-resident RTC devices.
      Additionally, the RTCSupport flag (in Hdr:Machine.Machine), which was previously TRUE for all HAL kernels, can now be set to FALSE in HAL kernels to disable the kernels own IIC RTC code. This allows the unwanted legacy RTC code to be disabled for machines which are known to use HAL RTCs instead.
      hdr/RTCDevice - new header describing data structures used for HAL RTC device
      hdr/HALDevice - added RTCDevice device type, IIC serial bus type
      hdr/KernelWS - upgraded RTCFitted from a 1 byte field to 4 byte. It now stores either a null value (for no RTC), a value <2048 for an IIC RTC address, or a value >= 2048 for a RTCDevice ptr
      Makefile - added header export of hdr/RTCDevic...
    7f21e480
Makefile 4.77 KB