void SHELL_SendString(unsigned char *msg) { #if PL_CONFIG_HAS_SHELL_QUEUE SQUEUE_SendString(msg); #else CLS1_SendStr(msg, CLS1_GetStdio()->stdOut); #endif }
void SHELL_SendString(unsigned char *msg) { #if PL_HAS_SHELL_QUEUE /*! \todo Implement function using queues */ SQUEUE_SendString(msg); #else CLS1_SendStr(msg, CLS1_GetStdio()->stdOut); #endif }
void SHELL_SendString(unsigned char *msg) { /*! \todo Replace this with message queues */ #if PL_HAS_SHELL_QUEUE SQUEUE_SendString(msg); #else CLS1_SendStr(msg, CLS1_GetStdio()->stdOut); #endif }
static void PrintButtonPressed(uint16_t whichButton, bool pressed) { unsigned char buffer[BUFFER_SIZE]; UTIL1_strcpy(buffer, sizeof(buffer), (uint8_t*)"Push button SW"); UTIL1_strcatNum16u(buffer, sizeof(buffer), whichButton); if (pressed) { UTIL1_strcat(buffer, sizeof(buffer), (uint8_t*)" pressed\r\n!"); } else { UTIL1_strcat(buffer, sizeof(buffer), (uint8_t*)" released\r\n!"); } #if configUSE_SEGGER_SYSTEM_VIEWER_HOOKS SEGGER_SYSVIEW_Print((const char*)buffer); #endif #if PL_CONFIG_HAS_SHELL_QUEUE SQUEUE_SendString(buffer); #endif }
void SHELL_SendString(unsigned char *msg) { SQUEUE_SendString(msg); }