Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
SnPreCompOptions.h@110:d1da040a0cf2, 2015-11-24 (annotated)
- Committer:
- uci1
- Date:
- Tue Nov 24 21:52:27 2015 +0000
- Revision:
- 110:d1da040a0cf2
- Parent:
- 84:80b15993944e
- Child:
- 114:554fa3a956b4
Stn32 (slow) with conf name. SD stall fix. No interface chip. Safety nets.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
uci1 | 84:80b15993944e | 1 | #ifndef SN_SnPreCompOptions |
uci1 | 84:80b15993944e | 2 | #define SN_SnPreCompOptions |
uci1 | 84:80b15993944e | 3 | |
uci1 | 84:80b15993944e | 4 | // whether to send debugging output to the serial (usb) port |
uci1 | 84:80b15993944e | 5 | // note that this is not typically included in cpp files, so it |
uci1 | 84:80b15993944e | 6 | // may be necessary to enable more DEBUG defines in those files. |
uci1 | 84:80b15993944e | 7 | // also, the comms and peripherals packages will have their own |
uci1 | 84:80b15993944e | 8 | // separate debug switches too. |
uci1 | 84:80b15993944e | 9 | //#define DEBUG |
uci1 | 84:80b15993944e | 10 | |
uci1 | 84:80b15993944e | 11 | // sorry for the double negative, but.. normally this is NOT DEFINED |
uci1 | 84:80b15993944e | 12 | // uncommenting this will allow any values to be specified in a configuration |
uci1 | 84:80b15993944e | 13 | // leaving it commented out is safer |
uci1 | 84:80b15993944e | 14 | //#define DISABLE_CONFIG_SAFETYNETS |
uci1 | 84:80b15993944e | 15 | |
uci1 | 84:80b15993944e | 16 | // choose which communication peripherals will be used in the comms loop |
uci1 | 84:80b15993944e | 17 | // for now, twitter is completely not working. |
uci1 | 84:80b15993944e | 18 | #define ENABLE_AFAR_COMM |
uci1 | 84:80b15993944e | 19 | #define ENABLE_SBD_COMM |
uci1 | 84:80b15993944e | 20 | //#define ENABLE_USB_COMM |
uci1 | 84:80b15993944e | 21 | //#define ENABLE_AFAR_TWITTER |
uci1 | 84:80b15993944e | 22 | |
uci1 | 84:80b15993944e | 23 | // use of the real time operating system has not been implemented |
uci1 | 84:80b15993944e | 24 | // for some time -- enabling this will not work any more. |
uci1 | 84:80b15993944e | 25 | // some development will be needed, including a RTOS aware networking package |
uci1 | 84:80b15993944e | 26 | //#define USE_RTOS // change USE_RTOS in CommConstants and EthernetPower also |
uci1 | 84:80b15993944e | 27 | |
uci1 | 84:80b15993944e | 28 | // an outdated switch. currently only NetServicesMin is available. |
uci1 | 84:80b15993944e | 29 | //#define USE_ETH_INTERFACE |
uci1 | 84:80b15993944e | 30 | |
uci1 | 84:80b15993944e | 31 | // turn this on to record how long it takes to take and save events |
uci1 | 84:80b15993944e | 32 | //#define EVT_TIME_PROFILE |
uci1 | 84:80b15993944e | 33 | |
uci1 | 84:80b15993944e | 34 | // print the start and stop running messages on the seial (USB) port |
uci1 | 84:80b15993944e | 35 | // even if other debugging messages are disabled. |
uci1 | 84:80b15993944e | 36 | //#define SSNOTIFY |
uci1 | 84:80b15993944e | 37 | |
uci1 | 84:80b15993944e | 38 | // use MODSERIAL (a buffered serial interface) instead of the |
uci1 | 84:80b15993944e | 39 | // "standard" serial (unbuffered) provided by mbed |
uci1 | 84:80b15993944e | 40 | #define USE_MODSERIAL |
uci1 | 84:80b15993944e | 41 | |
uci1 | 84:80b15993944e | 42 | |
uci1 | 84:80b15993944e | 43 | // available CHIPBOARDs -- these values should NEVER change! |
uci1 | 84:80b15993944e | 44 | // this is just a definition of constants. CHIPBOARD is the |
uci1 | 84:80b15993944e | 45 | // variable that must be set equal to one of these constants. |
uci1 | 84:80b15993944e | 46 | #define ATWD4CH 0 // set CHIPBOARD to this to get firmware for the 2012-2013 stations (value is arbitrary but unique) |
uci1 | 84:80b15993944e | 47 | #define SST4CH 1 // set CHIPBOARD to this to get firmware for the 2014 stations with a single SST chip (value is arbitrary but unique) |
uci1 | 84:80b15993944e | 48 | |
uci1 | 84:80b15993944e | 49 | // which chip/board combination to build this firmware for |
uci1 | 84:80b15993944e | 50 | //#define CHIPBOARD ATWD4CH |
uci1 | 84:80b15993944e | 51 | #define CHIPBOARD SST4CH |
uci1 | 84:80b15993944e | 52 | |
uci1 | 84:80b15993944e | 53 | // whether or not to use the flash memory on the mbed board, to call |
uci1 | 84:80b15993944e | 54 | // the mbed provided function that gets the MAC address, etc. |
uci1 | 84:80b15993944e | 55 | // these functions all use the mbed interface chip. it has been found |
uci1 | 84:80b15993944e | 56 | // that once in while, functions accessing the interface chip will block |
uci1 | 84:80b15993944e | 57 | // forever and never return, resulting in a "brain dead" station. |
uci1 | 84:80b15993944e | 58 | // therefore, this should almost certainly be disabled (commented out) |
uci1 | 84:80b15993944e | 59 | // for stations installed in the ice. |
uci1 | 84:80b15993944e | 60 | //#define USE_INTERFACE_CHIP |
uci1 | 84:80b15993944e | 61 | |
uci1 | 84:80b15993944e | 62 | |
uci1 | 84:80b15993944e | 63 | // whether or not to use the lookup tables to speed up the FFTs |
uci1 | 84:80b15993944e | 64 | #define USE_DFFT_LUTS |
uci1 | 84:80b15993944e | 65 | |
uci1 | 84:80b15993944e | 66 | #endif // SN_SnPreCompOptions |