XMOS SliceKit GPIO Gpio Example Applications page 16

Table of Contents

Advertisement

SliceKit GPIO Example Applications
REV A
16/24
break ;
case CLEAR_LED_3 :
// Read port
Value and
Set LED 3
OFF
p_led : >
data
;
p_led <:
data
&0 x4
;
break ;
case SET_LED_4 :
// Read port
Value and
Set LED 4 ON
p_led : >
data
;
p_led <:
data
| 0
x7 ;
break ;
case CLEAR_LED_4 :
// Read port
Value and
Set LED 4
OFF
p_led : >
data
;
p_led <:
data
&0 x8
;
break ;
case CLEAR_ALL :
// sets all
four LEDs
OFF
p_led <:0
xF ;
break ;
case SET_ALL : //
sets all
four LEDs ON
p_led <:0
x0 ;
break ;
case
BUTTON_PRESSED

Advertisement

Table of Contents
loading

This manual is also suitable for:

Slicekit

Table of Contents