Skip to content

Commit 889fee4

Browse files
committed
update example for time.h revision
1 parent f004c66 commit 889fee4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/GoldilocksAnalogueTestSuite/GoldilocksAnalogueTestSuite.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
#include <Arduino_FreeRTOS.h>
2020
#include <semphr.h>
2121

22-
// From Library: AVR Standard C Time Library
23-
#include <ephemera_common.h>
24-
#include <time.h>
22+
// From Library: AVR Real Time Clock Library
23+
#include <Arduino_RTC.h>
2524

2625
// From Library: Goldilocks Analogue DAC Library
2726
#include <DAC.h>
@@ -92,7 +91,7 @@ void setup() {
9291
CurrTimeDate.tm_min = (uint8_t) 16;
9392
CurrTimeDate.tm_sec = (uint8_t) 0;
9493

95-
set_system_time( mktime( (ptm)&CurrTimeDate));
94+
set_system_time( mktime( (tm*)&CurrTimeDate ) );
9695
}
9796

9897
// Semaphores are useful to stop a task proceeding, where it should be stopped because it is using a resource, such as the Serial port.

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name=FreeRTOS
22
version=10.3.0-5
33
author=Richard Barry <info@freertos.org>
44
maintainer=Phillip Stevens <phillip.stevens@gmail.com>
5-
sentence=Real Time Operating System implemented for AVR (Uno, Leonardo, Mega).
5+
sentence=<h3>FreeRTOS Real Time Operating System implemented for AVR (Uno, Leonardo, Mega) </h3>
66
paragraph=The primary design goals are: Easy to use, Small footprint, Robust. Uses Watchdog Timer for 15ms resolution. Slow blink = stack overflow. Fast blink = heap malloc() failure.
77
category=Timing
88
url=https://github.com/feilipu/Arduino_FreeRTOS_Library

0 commit comments

Comments
 (0)