From the course: Introduction to FreeRTOS and Basic Task Management

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Understanding FreeRTOS naming conventions

Understanding FreeRTOS naming conventions

- [Instructor] In this lesson, we will analyze the naming conventions used in FreeRTOS. These conventions are designed to make code more readable and maintainable, so let's dive right in. Let's start by looking at the different data types used in FreeRTOS. FreeRTOS uses specific naming conventions for its data types to ensure that the code is portable across different hardware architectures. Two of the key data types you would often come across are the TickType_t and the BaseType_t. Let's start with the TickType-t. The TickType-t is used for counting system ticks. Its size depends on the configuration settings. It could be either an unsigned 16-bit type or an unsigned 32-bit type. This flexibility allows FreeRTOS to adapt to systems with different memory and processing capabilities. Next, we have the BaseType_t. This type is used for variables where the size depends on the architecture of the system. Similar to TickType_t, it can be either 16-bits or 32-bit unsigned type depending on…

Contents