SliceKit GPIO Example Applications
for ( int inc =0; inc
>
<20; inc ++)
>
// Clears the
>
command
>
buffer
cmd_rcvbuffer
>
[ inc
>
]= '0 ';
>
j =0;
}
break ;
//:: Send
case c_end :> data :
if( data != EXIT && data !=
>
INVALID )
{
uart_tx_string (
>
c_uartTX ,
>
CONSOLE_MESSAGES
>
[3]) ; //
>
Displays
>
COmmand
>
Executed
>
Message on
>
Uart
}
//:: State machine
switch ( data )
{
case EXIT : // Exit
>
from
>
command mode
COMMAND_MODE
>
=0;
skip =0;
uart_tx_string
>
(
>
c_uartTX
>
,
>
CONSOLE_MESSAGES
>
[1])
>
;
uart_tx_string
>
(
>
c_uartTX
>
,
>
CONSOLE_MESSAGES
>
[13])
>
;
break ;
case SET_LED_1 :
>
// Read port
>
Value and
>
Set LED 1 ON
p_led :>
>
data
>
;
REV A