Exemplo n.º 1
0
void initPins(void)
{
   printf("pins init\r\n");
   DDRU = 0xFF;
   //set the inputs to lo default the pins to output
   DDRT = 0xFF & ~beaconPin & ~encALPin & ~encBLPin & ~encARPin & ~encBRPin;   
  
   //DDRAD = 0xFF & ~tapePin0 & ~tapePin1 & ~tapePin2 ;
   ADS12_Init("OOOOOAAA");
   
   DDRP=0xFF & ~limitPinBL & ~limitPinBR;
   DDRS=0xFF & ~limitPinFL & ~limitPinFR;
   DDRE=0xFF;
}
Exemplo n.º 2
0
void InitPorts (void) {
    (void)ADS12_Init("IIIAAAAA");
}