summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-07-10 06:00:12 -0400
committerGitHub <[email protected]>2022-07-10 18:00:12 +0800
commit5b6a257c20037784da2e5e0f1de31b811c06ff79 (patch)
treeecfe6e870e24d22de8edc512ca04a9f47a854a89 /components
parent825b9ffbc3dd1308cf07ecaf7ade1cad5c84136a (diff)
chore: fix a typo (#6154)
Diffstat (limited to 'components')
-rw-r--r--components/drivers/include/drivers/alarm.h2
-rw-r--r--components/drivers/rtc/alarm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/include/drivers/alarm.h b/components/drivers/include/drivers/alarm.h
index 6ea9f5e271..bd631edac1 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 f6c536d354..56c7430641 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 */