Skip to content

Commit 76c1384

Browse files
committed
修复编译错误
1 parent 05ee7e4 commit 76c1384

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

components/drivers/rtc/dev_soft_rtc.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,19 @@
3737
#endif
3838

3939
static struct rt_work rtc_sync_work;
40-
4140
static struct rt_device soft_rtc_dev;
41+
static struct timespec init_ts = { 0 };
42+
static RT_DEFINE_SPINLOCK(_spinlock);
4243
#ifdef RT_USING_KTIME
4344
static struct timespec init_ktime_ts = { 0 };
4445
#else
4546
static rt_tick_t init_tick;
4647
#endif
47-
static struct timespec init_ts = { 0 };
4848

4949
#ifdef RT_USING_ALARM
50-
5150
static struct rt_rtc_wkalarm wkalarm;
5251
static struct rt_timer alarm_time;
5352

54-
static RT_DEFINE_SPINLOCK(_spinlock);
55-
5653
static void alarm_timeout(void *param)
5754
{
5855
rt_alarm_update(param, 1);

0 commit comments

Comments
 (0)