gpio.c

Go to the documentation of this file.
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/
00025 //#include "iom406_320.h"
00026 #include <iom406.h>     // IAR headerfile for Mega406 (EW 410)
00027 #include "gpio.h"
00028 #include "timer.h"
00029 
00030 
00031 
00032 
00033 // Configure all I/O
00034 void PinInit(void)
00035 {
00036   ; 
00037 
00038 }
00039 
00040 
00041 
00042 //Activate pushbutton interrupt.
00043 void PBinit(void)
00044 {
00045   SetLEDbrightness(192);  //use 75% high-time so we can see it changing on an oscilloscope.
00046   DDRA &= ~(1<<7);        //make PA7 be input
00047   PORTA |= 1<<7;          //turn on PA7 pullup
00048   SetLEDs(0x1F);
00049 }
00050 
00051 
00052 
00053 //Disable the PB interrupt to deactivate the function.
00054 void PBdisable(void)
00055 {
00056   ;     // not used
00057 }
00058 
00059 
00060 
00061 #pragma vector = INT3_vect
00062 __interrupt void PB_ISR(void)
00063 {
00064   ;     // not used
00065 }
00066 
00067 
00068 
00069 
00070 

Generated on Mon Nov 12 15:59:58 2007 for AVR453 Smart Battery Reference Design by  doxygen 1.5.3