Ich habe jetzt mal die Empfehlungen befolgt und statt die Dateien einfach über die IDE zu inkludieren folgende Include-Anweisungen an den Anfang des Quelltexts geschrieben:
#include "RP6RobotBaseLib.h"
#include "RP6RobotBaseLib.c"
#include "RP6uart.h"
#include "RP6uart.c"
Seitdem bekomme ich folgende Errors:
Code:
In file included from censored.c:2:
RP6RobotBaseLib.c: In function 'initRobotBase':
RP6RobotBaseLib.c:1774: error: 'UBRRH' undeclared (first use in this function)
RP6RobotBaseLib.c:1774: error: (Each undeclared identifier is reported only once
RP6RobotBaseLib.c:1774: error: for each function it appears in.)
RP6RobotBaseLib.c:1775: error: 'UBRRL' undeclared (first use in this function)
RP6RobotBaseLib.c:1776: error: 'UCSRA' undeclared (first use in this function)
RP6RobotBaseLib.c:1777: error: 'UCSRC' undeclared (first use in this function)
RP6RobotBaseLib.c:1777: error: 'URSEL' undeclared (first use in this function)
RP6RobotBaseLib.c:1778: error: 'UCSRB' undeclared (first use in this function)
RP6RobotBaseLib.c:1787: error: 'GICR' undeclared (first use in this function)
RP6RobotBaseLib.c:1788: error: 'ISC2' undeclared (first use in this function)
In file included from censored.c:4:
RP6uart.c: In function 'writeChar':
RP6uart.c:73: error: 'UCSRA' undeclared (first use in this function)
RP6uart.c:74: error: 'UDR' undeclared (first use in this function)
RP6uart.c: At top level:
RP6uart.c:219: warning: 'USART_RXC_vect' appears to be a misspelled signal handler
RP6uart.c: In function 'USART_RXC_vect':
RP6uart.c:223: error: 'UDR' undeclared (first use in this function)
RP6uart.c: In function 'clearReceptionBuffer':
RP6uart.c:297: error: 'UCSRB' undeclared (first use in this function)
RP6uart.c:298: error: 'UDR' undeclared (first use in this function)
Lesezeichen