XMOS SliceKit GPIO Gpio Example Applications page 14

Table of Contents

Advertisement

SliceKit GPIO Example Applications
//:: Send
//:: State machine
REV A
for ( int inc =0; inc
<20; inc ++)
// Clears the
buffer
j =0;
}
break ;
case c_end : > data :
if ( data != EXIT && data !=
INVALID )
{
uart _tx_st ring (
c_uartTX ,
C ON S OL E _M E SS A GE S
[3]) ; //
Displays
COmmand
Executed
Message on
Uart
}
switch ( data )
{
case EXIT : // Exit
command mode
case SET_LED_1 :
// Read port
Value and
Set LED 1 ON
14/24
command
cmd_rcvbuffer
[ inc
]= '0 ';
from
COMMAND_MODE
=0;
skip =0;
uart_tx_string
(
c_uartTX
,
C O NS O LE _ ME S SA G ES
[1])
;
uart_tx_string
(
c_uartTX
,
C O NS O LE _ ME S SA G ES
[13])
;
break ;
p_led : >
data
;

Advertisement

Table of Contents
loading

This manual is also suitable for:

Slicekit

Table of Contents