void SHELL_Init(void) { /* pull-up UART RX line to OpenSDA */ PORT_PDD_SetPinPullSelect(PORTE_BASE_PTR, 1, PORT_PDD_PULL_UP); PORT_PDD_SetPinPullEnable(PORTE_BASE_PTR, 1, PORT_PDD_PULL_ENABLE); CLS1_SetStdio(ios[0].stdio); /* using the first one as the default channel */ if (xTaskCreate(ShellTask, "Shell", 800/sizeof(StackType_t), NULL, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;){} /* error */ } }
void SHELL_Init(void) { #if !CLS1_DEFAULT_SERIAL && PL_HAS_BLUETOOTH (void)CLS1_SetStdio(&BT_stdio); /* use the Bluetooth stdio as default */ #endif #if PL_HAS_RTOS if (FRTOS1_xTaskCreate(ShellTask, "Shell", configMINIMAL_STACK_SIZE+100, NULL, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;){} /* error */ } #endif }