Hallo Leute, ich bekomme eine Fehlermeldung undefined reference to `Set_Direction' in der Interruptroutine obwohl es am Anfang der Datei auch einen Funktionsprototypen gibt:
1 | void SET_Direction(void) |
2 | {
|
3 | if ( PIND & (1<<PIND3) ) |
4 | {
|
5 | USART_Transmit('1'); |
6 | Richtung = 1; |
7 | }
|
8 | else
|
9 | {
|
10 | USART_Transmit('0'); |
11 | Richtung = 0; |
12 | }
|
13 | }
|
14 | ISR (INT1_vect) |
15 | {
|
16 | Set_Direction(); <-- Hier Fehler implicit declaration of function 'Set_Direction' |
17 | }
|
Ich sehe aber nicht woran das liegt?