Skip to content

Instantly share code, notes, and snippets.

#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
BaseType_t FreeRTOS_CLIRegisterCommand( const CLI_Command_Definition_t * const pxCommandToRegister )
#else
BaseType_t FreeRTOS_CLIRegisterCommand( const CLI_Command_Definition_t * const pxCommandToRegister, CLI_Definition_List_Item_t *pxNewListItem )
#endif
{
static CLI_Definition_List_Item_t *pxLastCommandInList = &xRegisteredCommands;
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
CLI_Definition_List_Item_t *pxNewListItem;
#endif