bool commTest(void) { bool pass=isInit; #ifdef USE_UART_CRTP pass &= uartTest(); #elif defined(USE_ESKYLINK) pass &= eskylinkTest(); #else pass &= radiolinkTest(); #endif pass &= crtpTest(); pass &= crtpserviceTest(); pass &= consoleTest(); pass &= paramTest(); return pass; }
int main(void) { // initialize processor processorInit(); // initialize timers timerInit(); // initialize uarts uart0Init(UART_BAUD(115200), UART_8N1, UART_FIFO_8); uart1Init(UART_BAUD(115200), UART_8N1, UART_FIFO_8); // initialize rprintf to use UART1 for output rprintfInit(uart1SendByte); // Wait for a moment to allow hardware to stabilize. // This may be important if a serial port level-converter // like the MAX232 is used. Charge-pump based converters // need some time after power-up to charge before // communication is reliable. timerPause(50); // waits 50 milliseconds // run the test uartTest(); return 0; }