Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
Diff: SnPreCompOptions.h
- Revision:
- 119:b3d7699d0eb0
- Parent:
- 118:d07ceb4b4813
- Child:
- 120:1a43bc4a06b3
--- a/SnPreCompOptions.h Mon Oct 24 19:10:43 2016 +0000 +++ b/SnPreCompOptions.h Thu Sep 21 17:53:35 2017 +0000 @@ -1,6 +1,17 @@ #ifndef SN_SnPreCompOptions #define SN_SnPreCompOptions +/****************************************************************************** +** NOTE NOTE NOTE NOTE NOTE +** +** These settings are essential! Double check ALL settings! +** +** To change for new hardware, set BOTH appropriately: +** CHIPBOARD +** DAC_BITS +******************************************************************************/ + + // whether to send debugging output to the serial (usb) port // note that this file may not be included in cpp files, so it // may be necessary to add more DEBUG defines in those files. @@ -42,13 +53,21 @@ #define SST4CH_1GHz 2 // set CHIPBOARD to this to get firmware for the 2015 station with a single SST chip running at 1GHz sampling rather than 2GHz (value is arbitrary but unique) #define SST4CH512 3 // set CHIPBOARD to this to get firmware for the 2014/2015 stations with a single SST chip (value is arbitrary but unique) #define SST4CH512_1GHz 4 // set CHIPBOARD to this to get firmware for the 2015 station with a single SST chip running at 1GHz sampling rather than 2GHz (value is arbitrary but unique) +#define SST8CH 5 // set CHIPBOARD to this to get firmware for the 2014/2015 stations with 2 SST chips (value is arbitrary but unique) +#define SST8CH_1GHz 6 // set CHIPBOARD to this to get firmware for the 2015 station with 2 SST chips running at 1GHz sampling rather than 2GHz (value is arbitrary but unique) // which chip/board combination to build this firmware for //#define CHIPBOARD ATWD4CH #define CHIPBOARD SST4CH //#define CHIPBOARD SST4CH_1GHz -//#define CHIPBOARD SST4CH512 // warning: 4*512 samples may fill up the 32kB of RAM. it may be necessary to disable Afar comms in order to free up RAM -//#define CHIPBOARD SST4CH512_1GHz // warning: 4*512 samples may fill up the 32kB of RAM. it may be necessary to disable Afar comms in order to free up RAM +//#define CHIPBOARD SST4CH512 // warning: 4*512 samples may fill up the 32kB of RAM. it may be necessary to comment out ENABLE_AFAR_COMM in order to free up RAM +//#define CHIPBOARD SST4CH512_1GHz // warning: 4*512 samples may fill up the 32kB of RAM. it may be necessary to comment out ENABLE_AFAR_COMM in order to free up RAM +//#define CHIPBOARD SST8CH // warning: 8*256 samples may fill up the 32kB of RAM. it may be necessary to comment out ENABLE_AFAR_COMM in order to free up RAM +//#define CHIPBOARD SST8CH_1GHz // warning: 8*256 samples may fill up the 32kB of RAM. it may be necessary to comment out ENABLE_AFAR_COMM in order to free up RAM + +// how many bits the DACs use +#define DAC_BITS 12 // use for 4ch atwd/sst boards +//#define DAC_BITS 16 // use for 8ch sst boards (2017-18) // whether or not to use the flash memory on the mbed board, to call // the mbed provided function that gets the MAC address, etc.