When linking to functions from a .c
file in a C++ project (which seems to be what you have), you need to declare the function as extern "C"
.
Try changing the header files';
SUBSYS_OPENSTAT LED_open( void );
to
extern "C" {
SUBSYS_OPENSTAT LED_open( void );
}
EDIT: Seems more than one file is confused about C++, try putting all your C
includes inside extern "C"
in your cpp file instead;
extern "C" {
#include "Arduino.h"
}
void setup();
void loop();
void setup()
{
LED_open();
}
void loop()
{
}