RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
rtc_config.h
Go to the documentation of this file.
1
2// Copyright (C) 2013-2026 Efinix Inc. All rights reserved.
3// Full license header bsp/efinix/EfxSapphireSocRV64/include/LICENSE.MD
5
6#ifndef RTC_CONFIG_H
7#define RTC_CONFIG_H
8
19
20#include "userDef.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
32
33/* ========================================================================== */
34/* SUB-GROUP: DRIVER SELECTION LOGIC */
35/* ========================================================================== */
36
50
51#if (ACTIVE_RTC_TYPE == RTC_TYPE_PCF8523)
52 #include "rtc/device/PCF8523.h"
53
57 #define RTC_CTRL RTC_PCF8523_ADDR
58
62 #define RTC_DRIVER PCF8523_DRIVER
63
64#elif (ACTIVE_RTC_TYPE == RTC_TYPE_DS3231)
65 #include "rtc/device/DS3231.h"
66
70 #define RTC_CTRL RTC_DS3231_ADDR
71
75 #define RTC_DRIVER DS3231_DRIVER
76#else
77 #warning "Unsupported ACTIVE_RTC_TYPE"
78 #warning "Make sure to include the custom driver !!"
79#endif
80 // End of Automatic Driver Selection
82 // End of RTC_Config Group
84
85#ifdef __cplusplus
86}
87#endif // C_plusplus
88
89#endif // RTC_CONFIG_H
DS3231 Driver API definitions. This file provides data structures and APIs for controlling the DS3231...
PCF8523 Driver API definitions. This file provides data structures and APIs for controlling the PCF85...