hardware.c
Go to the documentation of this file.
00001 #include "hardware.h"
00002 
00003 void LED(unsigned char nr, unsigned char onoff) //set or reset LED 0..3
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) //beeper on
00020   {
00021     IOSET1 = (1 << 17);
00022   }
00023   else
00024   {
00025     IOCLR1 = (1 << 17);
00026   }
00027 }


ccny_asctec_firmware_2
Author(s): Ivan Dryanovski, Roberto G. Valenti
autogenerated on Tue Jan 7 2014 11:04:17