#ifndef _CONFIG

#define _CONFIG

#include <Arduino.h>

//void SERCOM1_Handler()
//{
  //Serial3.IrqHandler();
//}

// Define GPIOs and friends
//#define GPIO_1_IO 42
//#define EXT_TRIG_B 4
//#define SMBALERT 3

// Define Enable/disable pins
//#define SD_ENABLE 10
#define CAM_ENABLE 1
#define CAM_READY 2
//#define BOOST_ENABLE A3
//#define BOOST_STAT A0
#define STROBE_TRIG 0
//#define EXT_TRIG A1
//#define ADC_CS A4

// Define SD CARD PINS
//#define SDCARD_DETECT GPIO_1_IO
//#define SDCARD_ENABLE 11
//#define SDCARD_CS 12

// Everyone's I2C address
// sensors addies moved from Sensors.h
#define SX1509_ADDRESS 0x3E
#define AD5272_ADDR 0x2F // digital pot for current source
#define INA260_PWRIN_ADDR 0x40
#define INA260_LEDS_ADDR 0x41
#define BME280_ADDR 0x76
//#define INA260_INTBATT_ADDR 0x44
//#define INA260_EXTBATT_ADDR 0x45

#define DEBUGPORT Serial // USB port
#define HWPORT0 Serial1 // Rx/Tx lines through onboard transceiver

#define UI1 HWPORT0

/*
// Define Config Settings
#define LOGINT "LOGINT"
#define POLLFREQ "POLLFREQ"
#define LOCALECHO "LOCALECHO"
#define CMDTIMEOUT "CMDTIMEOUT"
#define HWPORT0BAUD "HWPORT0BAUD"
#define HWPORT1BAUD "HWPORT1BAUD"
#define HWPORT2BAUD "HWPORT2BAUD"
#define HWPORT3BAUD "HWPORT3BAUD"
#define STROBEDELAY "STROBEDELAY"
#define FRAMERATE "FRAMERATE"
#define TRIGWIDTH "TRIGWIDTH"
#define FLASHDUR "FLASHDUR"
#define FLASHTYPE "FLASHTYPE"
#define PROFILEMODE "PROFILEMODE"
#define LOWVOLTAGE "LOWVOLTAGE"
#define STANDBY "STANDBY"
#define CHECKHOURLY "CHECKHOURLY"
#define STARTUPTIME "STARTUPTIME"
#define WATCHDOG "WATCHDOG"
#define CAMGUARD "CAMGUARD"
#define TEMPLIMIT "TEMPLIMIT"
#define HUMLIMIT "HUMLIMIT"
#define MAXSHUTDOWNTIME "MAXSHUTDOWNTIME"
#define CHECKINTERVAL "CHECKINTERVAL"
#define MINDEPTH "MINDEPTH"
#define MAXDEPTH "MAXDEPTH"
#define ECHORBR "ECHORBR"
#define USERBRCLOCK "USERBRCLOCK"
#define CTDTYPE "CTDTYPE"
#define AUVMODE "AUVMODE"

// Define Commands
#define CFG "CFG"
#define PORTPASS "PORTPASS"
#define SETTIME "SETTIME"
#define WRITECONFIG "WRITECONFIG"
#define READCONFIG "READCONFIG"
#define CAMERAON "CAMERAON"
#define CAMERAOFF "CAMERAOFF"
#define SHUTDOWNJETSON "SHUTDOWNJETSON"
#define NEWEVENT "NEWEVENT"
#define PRINTEVENTS "PRINTEVENTS"
#define CLEAREVENTS "CLEAREVENTS"
#define BOOSTENABLE "BOOSTENABLE"
#define BOOSTDISABLE "BOOSTDISABLE"
#define TRIGENABLE "TRIGENABLE"
#define TRIGDISABLE "TRIGDISABLE"
#define TESTSTANDBY "TESTSTANDBY"
*/

#endif