Fx2lib
0.2
|
#include "fx2types.h"
Go to the source code of this file.
Defines | |
#define | D2ONH #0x88 |
#define | D2OFFH #0x80 |
#define | D3ONH #0x98 |
#define | D3OFFH #0x90 |
#define | D4ONH #0xA8 |
#define | D4OFFH #0xA0 |
#define | D5ONH #0xB8 |
#define | D5OFFH #0xB0 |
#define | activate_light(LIGHT_ADDR) |
#define | d2on() activate_light(D2ONH) |
#define | d2off() activate_light(D2OFFH) |
#define | d3on() activate_light(D3ONH) |
#define | d3off() activate_light(D3OFFH) |
#define | d4on() activate_light(D4ONH) |
#define | d4off() activate_light(D4OFFH) |
#define | d5on() activate_light(D5ONH) |
#define | d5off() activate_light(D5OFFH) |
Variables | |
volatile __xdata __at BYTE | D2ON |
volatile __xdata __at BYTE | D2OFF |
volatile __xdata __at BYTE | D3ON |
volatile __xdata __at BYTE | D3OFF |
volatile __xdata __at BYTE | D4ON |
volatile __xdata __at BYTE | D4OFF |
volatile __xdata __at BYTE | D5ON |
volatile __xdata __at BYTE | D5OFF |
macros for turning lights on the EZ-USB development board on and off.
Definition in file lights.h.
#define activate_light | ( | LIGHT_ADDR | ) |
#define d2off | ( | ) | activate_light(D2OFFH) |
#define d2on | ( | ) | activate_light(D2ONH) |
#define d3off | ( | ) | activate_light(D3OFFH) |
#define d3on | ( | ) | activate_light(D3ONH) |
#define d4off | ( | ) | activate_light(D4OFFH) |
#define d4on | ( | ) | activate_light(D4ONH) |
#define d5off | ( | ) | activate_light(D5OFFH) |
#define d5on | ( | ) | activate_light(D5ONH) |