foortex.codegen utility
C/EmbeddedSystems 1780 11.3k

C FreeRTOS Multitasking Sensor Telemetry & Queue System

Hard real-time C firmware architecture using FreeRTOS. Configures prioritized sensor sampling tasks, IPC message queues, and hardware watchdog reset tasks.

Thread-safe xQueueHandle message passing
Hardware watchdog timer task
Interactive Prompt & Options
Fully Editable

Appended directly to the LLM system prompt for tailored code output.

✨ OpenRouter LLM Engine (Llama-3.3-70B) Active

Generated Code

⚡ Instant Boilerplate
c-embedded-freertos-task-queue.ts
1#include "FreeRTOS.h"
2#include "task.h"
3#include "queue.h"
4
5QueueHandle_t telemetryQueue;
6
7void SensorTask(void *pvParameters) {
8 uint32_t val = 42;
9 for (;;) {
10 xQueueSend(telemetryQueue, &val, portMAX_DELAY);
11 vTaskDelay(pdMS_TO_TICKS(100));
12 }
13}
14
14 lines • 272 bytesc/embedded
Automated Sandbox

Deploy this boilerplate automatically in 1 click.

Deploy