]> rtime.felk.cvut.cz Git - CanFestival-3.git/blobdiff - examples/AVR/Slave/main.c
1.2
[CanFestival-3.git] / examples / AVR / Slave / main.c
index 57a74a219f874a62e4c0c3614ed938f4a6bfc3c3..b08abcf6e416a1c070ecadce90aaac6f24e36c8b 100644 (file)
@@ -26,7 +26,7 @@ Test projekt for a DS 401 slave, running on Atmel's STK500 with AT90CAN128
 Short description:
   PORTA:       Inputs (Keys, low active)
   PORTB:       Outputs (LEDs, low active)
-  PORTC:       Node ID (1 BCD switch)
+  PORTC:       Node ID (1 BCD switch, low active)
 
 ******************************************************************************/
 #include "hardware.h"
@@ -104,7 +104,7 @@ INPUT       LOCK_STATES *lock_states
 OUTPUT void
 ******************************************************************************/
 {
-  OSCCAL = 0x43;
+  OSCCAL = 0x43;                        // adjust the RC oszillator
   
   PORTA = 0xFF;                                // Inputs (Keys, low active) with pullup
   DDRA  = 0x00;                                //