Skip to main content

Function and Variable naming standards

FunctionsFreeRTOS

FreeRTOSTasks

Tasks

void vTaskUpdateMetrics(void *pvParameters);


Events

EventGroupHandle_t xGPIO_event_group;
int BTN_PUSH_BIT = BIT1; // bit is upper case
int BTN2_PUSH_BIT = BIT2; // bit is upper case
Queues
QueueHandle_t xGPIO_Q_handle; // Queue with item "GPIO"

Semaphore

SemaphoreHandle_t xSemaphoreSPIbus;

Variables