
35
At the end of the setup section we check if the SPI-to-UART bridge is initialized
successfully (SPI_Uart_Init()) and afterwards if wireless connection with the predefined
configuration is set up properly(autoconnect()).
3. void loop()
Void loop() is the section of the software that, as its name suggests, repeats over
and over again. This is the main part from which all external functions and procedures are
being called. For safety issues, just in case,
the data from receiving register. After that we simply wait for a client to appear.
SPI_Uart_println("exit");
delay(500);
Flush_RX();
…
while(!Have_Client());
if(SPI_Uart_Init()) //Test SC16IS750 communication
{
Serial.println("Bridge initialized successfully!");
}
else{
Serial.println("Could not initialize bridge,
locking up.\n\r");
while(1);
}
autoconnect();
Comentários a estes Manuais