diff --git a/components/drivers/include/drivers/alarm.h b/components/drivers/include/drivers/alarm.h index 6ea9f5e2710cbfa3d11a8f46d2912944f19eb580..bd631edac184b819fc959fc3d40e643860bbea32 100644 --- a/components/drivers/include/drivers/alarm.h +++ b/components/drivers/include/drivers/alarm.h @@ -20,7 +20,7 @@ to now.we also call it "don't care" value */ /* alarm flags */ -#define RT_ALARM_ONESHOT 0x000 /* only alarm onece */ +#define RT_ALARM_ONESHOT 0x000 /* only alarm once */ #define RT_ALARM_DAILY 0x100 /* alarm everyday */ #define RT_ALARM_WEEKLY 0x200 /* alarm weekly at Monday or Friday etc. */ #define RT_ALARM_MONTHLY 0x400 /* alarm monthly at someday */ diff --git a/components/drivers/rtc/alarm.c b/components/drivers/rtc/alarm.c index f6c536d3540ef62c295aecafbdb7c6a672135e65..56c74306413197d864646267ec8dbc88e746b39d 100644 --- a/components/drivers/rtc/alarm.c +++ b/components/drivers/rtc/alarm.c @@ -718,7 +718,7 @@ struct _alarm_flag static const struct _alarm_flag _alarm_flag_tbl[] = { {"N", 0xffff}, /* none */ - {"O", RT_ALARM_ONESHOT}, /* only alarm onece */ + {"O", RT_ALARM_ONESHOT}, /* only alarm once */ {"D", RT_ALARM_DAILY}, /* alarm everyday */ {"W", RT_ALARM_WEEKLY}, /* alarm weekly at Monday or Friday etc. */ {"Mo", RT_ALARM_MONTHLY}, /* alarm monthly at someday */