исходная библиотека freeRTOS для Arduino

This commit is contained in:
klassents committed 2025-03-19 09:13:40 +07:00
1 parent 1aaf8c59ae
commit 2de9206fd6
48 files changed
+39311

No files matched your search

@@ -0,0 +1,24 @@
/*
* Example of FreeRTOS configASSERT macro
* https://www.freertos.org/a00110.html#configASSERT
*/
#include <Arduino_FreeRTOS.h>
const boolean valueToAssert = true;
// The setup function runs once when you press reset or power the board
void setup() {
// Assert value is true, execution doesn't stop.
configASSERT(valueToAssert == true);
// Assert value is false, FreeRTOS execution stops and start to blink main led two times with 4 second cycle.
configASSERT(valueToAssert == false);
}
void loop()
{
// Empty. Things are done in Tasks.
}