RTOS Registrar Example

I am trying to create a data logger on Cortex M0 (LPC11U14), and I was thinking of using a real-time OS such as FreeRTOS so that I have one low-priority task that writes data to SD, and several high-priority timers that retrieve sensor data.

Does anyone know any code examples that can serve as a reference design? I know how to create tasks / timers, but I'm interested in efficient ways to transfer data from timers to write-task. And I try to reinvent the wheel if there is already a good data logger project that can serve as a codebase?

+4
source share
1 answer

I suggest you use a queue to serialize data logging.

Performing a low priority task that waits in line and writes to the SD card when something arrives, and some other tasks that write sensor data to the queue will do what you want elegantly.

See: FreeRTOS Queue Management

Specifically:

+1
source

All Articles