[bsp][cvitek] add rtc driver (#8586)

This commit is contained in:
Shicheng Chu authored and GitHub committed 2024-03-07 17:18:53 -05:00
1 parent c3416c5868
commit 5d70f98e4d
3 files changed
+337

No files matched your search

+5
View File
@@ -86,4 +86,9 @@ menu "General Drivers Configuration"
bool "Enable PWM 3"
default n
endif
config BSP_USING_RTC
bool "Enable RTC"
select RT_USING_RTC
default n
endmenu
+3
View File
@@ -26,6 +26,9 @@ if GetDepend('BSP_USING_PWM'):
CPPPATH += [cwd + r'/cv1800b/pwm']
CPPDEFINES += ['-DCONFIG_64BIT']
if GetDepend('BSP_USING_RTC'):
src += ['drv_rtc.c']
group = DefineGroup('drivers', src, depend = [''], CPPDEFINES = CPPDEFINES, CPPPATH = CPPPATH)
Return('group')
File diff suppressed because it is too large. Load diff