You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,14 @@ The canonical source for information is the [FreeRTOS Web Site](https://www.free
11
11
12
12
My other [AVRfreeRTOS Sourceforge Repository](https://sourceforge.net/projects/avrfreertos/) or [AVRfreeRTOS Github](https://github.com/feilipu/avrfreertos) has plenty of examples, ranging from [blink](https://sourceforge.net/projects/avrfreertos/files/MegaBlink/) through to a [synthesiser](https://sourceforge.net/projects/avrfreertos/files/GA_Synth/).
13
13
14
+
This library was the genesis of [generalised support for the ATmega platform within FreeRTOS](https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/48).
15
+
14
16
## General
15
17
16
18
FreeRTOS has a multitude of configuration options, which can be specified from within the FreeRTOSConfig.h file.
17
19
To keep commonality with all of the Arduino hardware options, some sensible defaults have been selected.
18
20
19
-
The AVR Watchdog Timer is used to generate 15ms time slices, but Tasks that finish before their allocated time will hand execution back to the Scheduler.
20
-
This does not affect the use of any of the normal Timer functions in Arduino.
21
+
The AVR Watchdog Timer is used to generate 15ms time slices, but Tasks that finish before their allocated time will hand execution back to the Scheduler. This does not affect the use of any of the normal Timer functions in Arduino.
21
22
22
23
Time slices can be selected from 15ms up to 500ms. Slower time slicing can allow the Arduino MCU to sleep for longer, without the complexity of a Tickless idle.
23
24
@@ -28,6 +29,8 @@ Watchdog period options:
28
29
*`WDTO_120MS`
29
30
*`WDTO_250MS`
30
31
*`WDTO_500MS`
32
+
*`WDTO_1S`
33
+
*`WDTO_2S`
31
34
32
35
Note that Timer resolution is affected by integer math division and the time slice selected. Trying to measure 50ms, using a 120ms time slice for example, won't work.
33
36
@@ -66,7 +69,7 @@ Testing with the Software Serial library shows some incompatibilities at low bau
66
69
* ATmega2560 @ 16MHz : Arduino Mega, Arduino ADK
67
70
* ATmega2560 @ 16MHz : Seeed Studio ADK
68
71
69
-
The new megaAVR 0-Series devices (eg. ATmega4809) are not fully compatible with this library. Their Timer configuration and structure is substantially different from previous devices, and forms part of a new __avr8x__ architecture. It may be a while until avr-libc is updated to include support, but when that happens further workd can be added here.
72
+
The new megaAVR 0-Series devices (eg. ATmega4809) are not fully compatible with this library. Their Timer configuration is substantially different from previous devices, and forms part of a new __avr8x__ architecture. It may be a while until avr-libc is updated to include support for megaAVR devices, but when that happens further work will be added here.
70
73
71
74
## Files & Configuration
72
75
@@ -84,6 +87,5 @@ Watchdog period is configurable using build-flags:
0 commit comments