Specifications

Hardware description
Description
Returns a compile-time constant Boolean to indicate whether the board is an "Expert" model featuring
expanded RAM, Bluetooth, LCD and touch screen.
You can use this to determine which board your code should be compiled for. For example, you could
use an
if...select statement to choose code specific to Expert boards.
5.4 LED macros
The LED macros target the blue LEDs on the RC200. The green LEDs on the RC200 are controlled by
the CPLD and cannot be programmed.
To turn the blue LEDs on and off, you can either use
RC200LEDWrite() and set Index to 0 to target
LED0 or to 1 to target LED1, or you can use one of the
RC200LED*Write() macros to target a specific
LED. To control both LEDs at once, use
RC200LEDWriteMask.
5.4.1 RC200LEDWrite()
extern macro proc RC200LEDWrite (Index, Value);
Parameters:
Index: LED index, of type unsigned 1.
Value: Boolean control value, of type unsigned 1.
Timing:
1 clock cycle.
Description: Turns the
Index number LED either on or off. A Value of 1 means ON, and 0
means OFF.
5.4.2 RC200LED*Write() macros
extern macro proc RC200LED0Write (Value);
extern macro proc RC200LED1Write (Value);
Parameters:
Value: Boolean control value, of type unsigned 1
Timing:
1 clock cycle
Description:
Controls LED 0 or LED1. A
Value of 1 means ON, and 0 means OFF.
5.4.3 RC200LEDWriteMask()
extern macro proc RC200LEDWriteMask (Value);
Parameters:
Value: Bitmask control value, of type unsigned 2.
Timing:
1 clock cycle.
Description: Controls both LEDs simultaneously. Bit 0 of
Value controls LED 0, and bit 1
controls LED 1.
www.celoxica.com
Page 38