Skip to content

Commit 690569f

Browse files
committed
Keep RTC API prototypes even when not enabled
Keep the prototypes in rtc_api.h even when DEVICE_RTC is not defined. This allows devices that aren't fully compliant with the RTC API to still use the header and prototypes.
1 parent 1566395 commit 690569f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

hal/rtc_api.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
#include "device.h"
2323

24-
#if DEVICE_RTC
25-
2624
#include <time.h>
2725

2826
#ifdef __cplusplus
@@ -72,6 +70,4 @@ void rtc_write(time_t t);
7270

7371
#endif
7472

75-
#endif
76-
7773
/** @}*/

0 commit comments

Comments
 (0)