瀏覽代碼

chore: fix a typo (#6154)

Man, Jianting (Meco) 2 年之前
父節點
當前提交
5b6a257c20
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      components/drivers/include/drivers/alarm.h
  2. 1 1
      components/drivers/rtc/alarm.c

+ 1 - 1
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 */

+ 1 - 1
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 */