Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
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
28
29/* ========================================================================== */
30/* SUB-GROUP: DRIVER SELECTION LOGIC */
31/* ========================================================================== */
32
46
47#if (ACTIVE_RTC_TYPE == RTC_TYPE_PCF8523)
48 #include "rtc/device/PCF8523.h"
49
53 #define RTC_CTRL RTC_PCF8523_ADDR
54
58 #define RTC_DRIVER PCF8523_DRIVER
59
60#elif (ACTIVE_RTC_TYPE == RTC_TYPE_DS3231)
61 #include "rtc/device/DS3231.h"
62
66 #define RTC_CTRL RTC_DS3231_ADDR
67
71 #define RTC_DRIVER DS3231_DRIVER
72#else
73 #warning "Unsupported ACTIVE_RTC_TYPE"
74 #warning "Make sure to include the custom driver !!"
75#endif
76 // End of Automatic Driver Selection
78 // End of RTC_Config Group
80
81#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...