I'm trying to get a custom robot to work with the Arduino IDE by declaring a new hardware "board" within the IDE. This contains all the mappings and whatnot, but there exists a library that I have access to the source.
Arduino IDE generates a cpp file as follows:
#line 1 "cbotj.ino"
#include "Arduino.h"
void setup();
void loop();
#line 1
void setup()
{
LED_open();
}
void loop()
{
}
I then get the error:
cbotj.cpp.o: In function `setup':
/Applications/cbotj.ino:3: undefined reference to `LED_open()'
Now in Arduino.h for the hardwares core I have
SUBSYS_OPENSTAT LED_open( void );
The function itself is implemented in another .c
file within the core hardware functions (such as pinMode) and is completely valid as it works as a compiled library for other IDE's such as Atmel's AVR Studio 4 and 6.
Why am I getting the undefined reference? Headers are included, etc.
The hardware is selected as it works if I were to use things like pinMode on the pin for an LED works fine.
TIA