Not checked with the hardware.
# -*- makefile -*-
-SUBDIRS = hal iap
+ifneq ($(BOARD),lpceurobot)
+SUBDIRS = hal iap
+endif
SUBDIRS += boot can lpcan lpcanvca pll pwm uart_zen uart-nozen ldscripts
PLLFEED = 0x55; // MUST occur in sequence.\r
\r
// setup the parallel port pin\r
- IOCLR = PIO_ZERO_BITS; // clear the ZEROs output\r
- IOSET = PIO_ONE_BITS; // set the ONEs output\r
- IODIR = PIO_OUTPUT_BITS; // set the output bit direction\r
+ IO0CLR = PIO_ZERO_BITS; // clear the ZEROs output\r
+ IO0SET = PIO_ONE_BITS; // set the ONEs output\r
+ IO0DIR = PIO_OUTPUT_BITS; // set the output bit direction\r
\r
// wait for PLL lock\r
while (!(PLLSTAT & PLLSTAT_LOCK))\r
*/\r
static void\r
ledInit() {\r
- IODIR |= 0x000F0000; /*leds connected to P0.16 17 18 & 19 should blink*/\r
- IOSET = 0x000F0000; /* all leds are switched on */\r
+ IO0DIR |= 0x000F0000; /*leds connected to P0.16 17 18 & 19 should blink*/\r
+ IO0SET = 0x000F0000; /* all leds are switched on */\r
}\r
\r
/**\r
*/\r
static void /* Ioclr.i =1 => IOset.i cleared */\r
ledOff(int led) {\r
- IOCLR = led;\r
+ IO0CLR = led;\r
}\r
\r
/**\r
*/\r
static void /* Ioset.i = 1 => P0.i = 1 */\r
ledOn(int led) {\r
- IOSET = led;\r
+ IO0SET = led;\r
}\r
\r
/**\r
PLLFEED = 0x55; // MUST occur in sequence.
// setup the parallel port pin
- IOCLR = PIO_ZERO_BITS; // clear the ZEROs output
- IOSET = PIO_ONE_BITS; // set the ONEs output
- IODIR = PIO_OUTPUT_BITS; // set the output bit direction
+ IO0CLR = PIO_ZERO_BITS; // clear the ZEROs output
+ IO0SET = PIO_ONE_BITS; // set the ONEs output
+ IO0DIR = PIO_OUTPUT_BITS; // set the output bit direction
// wait for PLL lock
while (!(PLLSTAT & PLLSTAT_LOCK))
*/
static void ledInit()
{
- IODIR |= 0x000F0000; /*leds connected to P0.16 17 18 & 19 should blink*/
- IOSET = 0x00000000; /* all leds are switched off */
+ IO0DIR |= 0x000F0000; /*leds connected to P0.16 17 18 & 19 should blink*/
+ IO0SET = 0x00000000; /* all leds are switched off */
}
/**
*/
static void ledOff(int led) /* Ioclr.i =1 => IOset.i cleared */
{
- IOCLR = led;
+ IO0CLR = led;
}
/**
*/
static void ledOn(int led) /* Ioset.i = 1 => P0.i = 1 */
{
- IOSET = led;
+ IO0SET = led;
}
PLLFEED = 0x55; // MUST occur in sequence.\r
\r
// setup the parallel port pin\r
- IOCLR = PIO_ZERO_BITS; // clear the ZEROs output\r
- IOSET = PIO_ONE_BITS; // set the ONEs output\r
- IODIR = PIO_OUTPUT_BITS; // set the output bit direction\r
+ IO0CLR = PIO_ZERO_BITS; // clear the ZEROs output\r
+ IO0SET = PIO_ONE_BITS; // set the ONEs output\r
+ IO0DIR = PIO_OUTPUT_BITS; // set the output bit direction\r
\r
// wait for PLL lock\r
while (!(PLLSTAT & PLLSTAT_LOCK))\r
PLLFEED = 0x55; // MUST occur in sequence.
// setup the parallel port pin
- IOCLR = PIO_ZERO_BITS; // clear the ZEROs output
- IOSET = PIO_ONE_BITS; // set the ONEs output
- IODIR = PIO_OUTPUT_BITS; // set the output bit direction
+ IO0CLR = PIO_ZERO_BITS; // clear the ZEROs output
+ IO0SET = PIO_ONE_BITS; // set the ONEs output
+ IO0DIR = PIO_OUTPUT_BITS; // set the output bit direction
// wait for PLL lock
while (!(PLLSTAT & PLLSTAT_LOCK))
*/
static void ledInit()
{
- IODIR |= 0x000F0000; /*leds connected to P0.16 17 18 & 19 should blink*/
- IOSET = 0x00000000; /* all leds are switched off */
+ IO0DIR |= 0x000F0000; /*leds connected to P0.16 17 18 & 19 should blink*/
+ IO0SET = 0x00000000; /* all leds are switched off */
}
/**
*/
static void ledOff(int led) /* Ioclr.i =1 => IOset.i cleared */
{
- IOCLR = led;
+ IO0CLR = led;
}
/**
*/
static void ledOn(int led) /* Ioset.i = 1 => P0.i = 1 */
{
- IOSET = led;
+ IO0SET = led;
}
# -*- makefile -*-
+include_HEADERS += deb_led.h
include_HEADERS += byteswap.h endian.h lt_timer.h lt_timer_types.h keyval_id_his.h ads1x46.h irq_generic.h
#include_HEADERS = $(notdir $(wildcard $(SOURCES_DIR)/*.h))