X-Git-Url: https://rtime.felk.cvut.cz/gitweb/CanFestival-3.git/blobdiff_plain/88ad9b1274e07eb0bfb0574f4e5504c79912f34b..47ffdd9f969d7b35d294f42a10bcf3a22a72dbff:/examples/AVR/Slave/main.c diff --git a/examples/AVR/Slave/main.c b/examples/AVR/Slave/main.c index 57a74a2..b08abcf 100644 --- a/examples/AVR/Slave/main.c +++ b/examples/AVR/Slave/main.c @@ -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; //