mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-18 22:52:17 +08:00
bsp:ls2k:make rtc driver to adapter Kconfig
rtc driver can not configured through Kconfig
This commit is contained in:
parent
3ce53f9c79
commit
b4f75d1ef8
@ -17,6 +17,8 @@
|
|||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include "ls2k1000.h"
|
#include "ls2k1000.h"
|
||||||
|
|
||||||
|
#ifdef RT_USING_RTC
|
||||||
|
|
||||||
struct loongson_rtc {
|
struct loongson_rtc {
|
||||||
rt_uint32_t sys_toytrim;
|
rt_uint32_t sys_toytrim;
|
||||||
rt_uint32_t sys_toywrite0;
|
rt_uint32_t sys_toywrite0;
|
||||||
@ -176,3 +178,5 @@ int rt_hw_rtc_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
INIT_DEVICE_EXPORT(rt_hw_rtc_init);
|
INIT_DEVICE_EXPORT(rt_hw_rtc_init);
|
||||||
|
|
||||||
|
#endif /*RT_USING_RTC*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user