Posted on ::

FreeRTOS naming convention

The hungarian naming scheme used by FreeRTOS can be represented as follows:

identifier   = typed_ident | prv_function | macro ;

typed_ident  = type, name ;
prv_function = "prv", name ;
macro        = ? C identifier: lowercase module prefix, UPPER_SNAKE_CASE body ? ;

type         = ["p"], ["u"], base_type ;
base_type    = "l" | "s" | "c" | "x" | "e" | "v" ;
name         = ? PascalCase C identifier ? ;

Note that typed_ident covers both variables and API functions — they are syntactically identical and cannot be distinguished by name alone. Instead, this lookup tool allows to make a distinction by putting parenthesis after a function identifier.