RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Functions | Variables
stm32u5-config-rtc.c File Reference

Implementation of the RTC driver for the STM32U5. More...

#include <bsp.h>
#include <bsp/fatal.h>
#include <bsp/start.h>
#include <libchip/rtc.h>
#include <rtems/rtems/clockimpl.h>
#include <rtems/score/todimpl.h>
#include <stm32u5/hal.h>

Functions

void BSP_START_TEXT_SECTION HAL_RTC_MspInit (RTC_HandleTypeDef *hrtc)
 

Variables

RTC_HandleTypeDef hrtc = { 0 }
 
RTC_TimeTypeDef sTime = { 0 }
 
RTC_DateTypeDef sDate = { 0 }
 
const rtc_fns stm32u5_rtc_device_ops
 
rtc_tbl RTC_Table []
 Table to describes the rtc device.
 
size_t RTC_Count = RTEMS_ARRAY_SIZE( RTC_Table )
 

Detailed Description

Implementation of the RTC driver for the STM32U5.

Variable Documentation

◆ RTC_Table

rtc_tbl RTC_Table[]
Initial value:
= {
{ .sDeviceName = "/dev/rtc",
.deviceType = RTC_CUSTOM,
.pDeviceFns = &stm32u5_rtc_device_ops,
.deviceProbe = stm32u5_rtc_device_probe }
}

Table to describes the rtc device.

◆ stm32u5_rtc_device_ops

const rtc_fns stm32u5_rtc_device_ops
Initial value:
= {
.deviceInitialize = stm32u5_rtc_device_initialize,
.deviceGetTime = stm32u5_rtc_device_get_time,
.deviceSetTime = stm32u5_rtc_device_set_time
}