00001 #include "hardware.h"
00002
00003 void LED(unsigned char nr, unsigned char onoff)
00004 {
00005 if (nr>=2)
00006 return;
00007 if(onoff == OFF)
00008 {
00009 IOSET1 = (1<<(24+nr));
00010 }
00011 else
00012 {
00013 IOCLR1 = (1<<(24+nr));
00014 }
00015 }
00016
00017 void beeper(unsigned char offon)
00018 {
00019 if (offon)
00020 {
00021 IOSET1 = (1 << 17);
00022 }
00023 else
00024 {
00025 IOCLR1 = (1 << 17);
00026 }
00027 }