FreeRTOSS study notes data type and comment

FreeRTOS Data Type

Stdint.h and divided into custom file defined in .char and pay special attention to char *

Custom data types:

  • TickType_t
    enabled macros configUSE_16_BIT_TICKS, then TickType_t 16 is defined as an unsigned number
    and vice versa for the unsigned 32-bit number, for the 32-bit processor, this macro definition must be prohibited, can be set to 0
  • BaseType_t
    32-bit processor, BaseType_t 32-bit signed number of
    16-bit processors, BaseType_t 16-bit signed number
  • UBaseType_t
    is an unsigned version of BaseType_t
  • StackType_t
    stack variables defined data type, 16-bit processor, a 16-bit variable. 32-bit processor, a 32-bit variable.

FreeRTOS layout and comments

  • Indent
    Tab tabs for indents, Tab to indent the first four characters space
  • Notes
    FreeRTOS the comments are not more than 80 characters wide, unless the comment function parameters. Using / * * /
    as comments. Do not use // comments

 

Guess you like

Origin www.cnblogs.com/hello147/p/11993692.html
Recommended