Skip to content

Commit

Permalink
fix(Examples,Boards): Fix SW number in MAX32670 RTC example and updat…
Browse files Browse the repository at this point in the history
…e MAX32655EVKIT examples list (#916)
  • Loading branch information
kenan-balci authored Feb 13, 2024
1 parent 1498581 commit a970291
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Examples/MAX32670/RTC/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
## Description
## Description

This example demonstrates the use of the Real Time Clock (RTC) and its alarm functionality.

The RTC is enabled and the sub-second alarm set to trigger every 250 ms.
(LED0) is toggled each time the sub-second alarm triggers. The time-of-day alarm is set to 10 seconds. When the time-of-day alarm triggers, the rate of the sub-second alarm is switched to 500 ms.

(LED1) is toggled each time the time-of-day alarm triggers. The time-of-day alarm is then rearmed for another 10 sec. Pressing SW2 will output the current value of the RTC to the console UART.
(LED1) is toggled each time the time-of-day alarm triggers. The time-of-day alarm is then rearmed for another 10 sec. Pressing SW3 will output the current value of the RTC to the console UART.


## Software
Expand Down Expand Up @@ -39,7 +40,7 @@ triggers, the rate of the sub-second alarm is switched to 500 ms.
(LED1) is toggled each time the time-of-day alarm triggers.
The time-of-day alarm is then rearmed for another 10 sec. Pressing SW1
The time-of-day alarm is then rearmed for another 10 sec. Pressing SW3
will output the current value of the RTC to the console UART.
RTC started
Expand Down
2 changes: 1 addition & 1 deletion Examples/MAX32670/RTC/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int main(void)
printf("triggers, the rate of the sub-second alarm is switched to %d ms.\n\n",
SUBSECOND_MSEC_1);
printf("(LED1) is toggled each time the time-of-day alarm triggers.\n\n");
printf("The time-of-day alarm is then rearmed for another %d sec. Pressing SW1\n",
printf("The time-of-day alarm is then rearmed for another %d sec. Pressing SW3\n",
TIME_OF_DAY_SEC);
printf("will output the current value of the RTC to the console UART.\n\n");

Expand Down
1 change: 1 addition & 0 deletions Libraries/Boards/MAX32655/EvKit_V1/examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ GPIO
Hello_World
Hello_World-riscv
I2C
I2C_EEPROM
I2C_MNGR
I2C_SCAN
I2C_Sensor
Expand Down

0 comments on commit a970291

Please sign in to comment.