Allow RX YRDK demos to work with Rev1 and Rev3 boards, and with any web browser.

This commit is contained in:
Richard Barry 2010-12-22 15:18:30 +00:00
parent 7b9a3e0707
commit 6046eea342
12 changed files with 219 additions and 128 deletions

View file

@ -40,8 +40,14 @@ Macro definitions
#define CMT0_CLK_SELECT (512)
/* General Values */
#define LED_ON (1)
#define LED_OFF (0)
#ifdef LED_POSITIVE_LOGIC
#define LED_ON (1)
#define LED_OFF (0)
#else
/* LEDs are using NEGATIVE LOGIC... */
#define LED_ON (0)
#define LED_OFF (1)
#endif
#define SET_BIT_HIGH (1)
#define SET_BIT_LOW (0)
#define SET_BYTE_HIGH (0xFF)