ArduinoOS
5 days ago
- #Multithreading
- #Operating System
- #Arduino
- ArduinoOS is an operating system for Arduino supporting real multithreading, exceptions, and hardware abstraction.
- The kernel is written in assembly and C, optimized for minimal memory usage.
- Supports up to 20 threads on Arduino Uno and 90 threads on Arduino Mega.
- Includes features like sleep, thread creation, locks, and exception handling.
- Exception handling includes throw, try-catch blocks, and exception derivation.
- Provides hardware abstraction for components like LEDs, motors, and servos.
- Includes error handling mechanisms like kernel panic and memory checks.
- Allows setting stack sizes for threads to manage memory efficiently.
- Supports passing arguments to threads and setting kernel tick periods.
- Example code snippets provided for common operations like thread creation and exception handling.