示例#1
0
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
}
示例#3
0
文件: Shell.c 项目: Jack67/Sumobot
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

}
示例#4
0
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
}
示例#5
0
文件: Shell.c 项目: BettyET/source42
void SHELL_SendString(unsigned char *msg)
{
	SQUEUE_SendString(msg);
}