SliceKit GPIO Example Applications
uart_tx_send_byte (
>
c_uartTX , '\r ');
uart_tx_send_byte (
>
c_uartTX , '\n ');
uart_tx_string ( c_uartTX ,
>
CONSOLE_MESSAGES [0])
>
;
COMMAND_MODE =1; //
>
activates command
>
mode as received
>
data is '>cmd '
uart_tx_send_byte (
>
c_uartTX , '\r ');
uart_tx_send_byte (
>
c_uartTX , '\n ');
uart_tx_send_byte (
>
c_uartTX , '>'); //
>
displays '>' if
>
command mode is
>
activated
}
else
{
uart_tx_send_byte (
>
c_uartTX , '>');
for ( int i =0;i <3; i ++)
uart_tx_send_byte
>
( c_uartTX ,
>
cmd_rcvbuffer
>
[i]); // if
>
received dta
>
is not 'c'
>
displays
>
back the
>
received
>
data
}
}
else
{
uart_tx_send_byte ( c_uartTX , '>');
>
// if received data is not '
>
m' displays the received
>
data
for ( int i =0;i <2; i ++)
uart_tx_send_byte (
>
c_uartTX ,
>
cmd_rcvbuffer [i]);
}
}
else
{
uart_tx_send_byte ( c_uartTX , '>');
uart_tx_send_byte ( c_uartTX , cmd_rcvbuffer
>
[j]);
j =0;
}
}
else
{
REV A