diff options
| author | Selene ToyKeeper | 2018-12-18 14:59:40 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-12-18 14:59:40 -0700 |
| commit | f144b83fbbd2c6a36600ed27291d0816543df34b (patch) | |
| tree | 37e043ec7a083ddbfbffb35844279318afc6dddb /spaghetti-monster/werner/werner.c | |
| parent | Reworked the config file include system so it'll include the #defined value (diff) | |
| download | anduril-f144b83fbbd2c6a36600ed27291d0816543df34b.tar.gz anduril-f144b83fbbd2c6a36600ed27291d0816543df34b.tar.bz2 anduril-f144b83fbbd2c6a36600ed27291d0816543df34b.zip | |
Updated the rest of the FSM interfaces to use the new config file system.
Diffstat (limited to 'spaghetti-monster/werner/werner.c')
| -rw-r--r-- | spaghetti-monster/werner/werner.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/spaghetti-monster/werner/werner.c b/spaghetti-monster/werner/werner.c index b6cdf12..7c47cd7 100644 --- a/spaghetti-monster/werner/werner.c +++ b/spaghetti-monster/werner/werner.c @@ -20,10 +20,7 @@ /********* User-configurable options *********/ // Physical driver type (uncomment one of the following or define it at the gcc command line) -//#define FSM_EMISAR_D4_DRIVER -//#define FSM_BLF_Q8_DRIVER -//#define FSM_FW3A_DRIVER -//#define FSM_BLF_GT_DRIVER +//#define CONFIGFILE cfg-emisar-d4.h #define USE_LVP // FIXME: won't build when this option is turned off @@ -37,21 +34,13 @@ //#define BATTCHECK_4bars // FIXME: breaks build /***** specific settings for known driver types *****/ -#if defined(FSM_BLF_GT_DRIVER) -#include "cfg-blf-gt.h" - -#elif defined(FSM_BLF_Q8_DRIVER) -#include "cfg-blf-q8.h" - -#elif defined(FSM_EMISAR_D4_DRIVER) -#include "cfg-emisar-d4.h" - -#elif defined(FSM_FW3A_DRIVER) -#include "cfg-fw3a.h" - +#ifdef CONFIGFILE +#include "tk.h" +#include incfile(CONFIGFILE) +#else +#error You need to define CONFIGFILE #endif - // thermal properties, if not defined per-driver #ifndef MIN_THERM_STEPDOWN #define MIN_THERM_STEPDOWN MAX_1x7135 // lowest value it'll step down to |
