IMTEK-FreiStat / FreiStat-IoT

A potentiostat using the AD5940/AD5941 with Adafruit Feather and other Arduino-compatible boards for electrochemistry
21 stars 7 forks source link

ArduinoPort.h? #2

Open dansteingart opened 3 years ago

dansteingart commented 3 years ago

Many thanks for sharing this code. After following the instructions I'm getting the following error on compilation:

..../Documents/Arduino/libraries/ad5940/ad5940.c:3783: undefined reference to `AD5940_Delay10us'

many times over. in that folder I have

ad5940.c
ad5940.h
ArduinoPort.cpp

per the instructions: is there an ArduinoPort.h that complements the .cpp file?

Thanks in advance.

xxMCJxx commented 2 years ago

Sorry for the late response,

The ArduinPort.cpp is used by the ad5940.h (which is an external library) to define functions which are specific to the used board.

Not sure regarding the error message but did you modify the ad5940.h according to the README.md?

#ifdef __cplusplus
extern "C" {
#endif
< content of .h file >
#ifdef __cplusplus
}
#endif

*Note: I'm not the original author of that software part