G'day
I'm porting a sketch from F5529 to Tiva, and want to be able to use the sketch on both (until debugged). I thought the following would work:
#define _TIVA true //true for Tiva, false for F5529
#if (_TIVA)
#include "TM4C_DS18B20.h"
#else
#include "GFDS18B20.h"
#endif
But I get multiple definition of `DS18B20:.. errors , when I compile.
Is there a way around this.