|
@ -11,6 +11,8 @@ |
|
|
#ifndef APP_HARDWARE_H_ |
|
|
#ifndef APP_HARDWARE_H_ |
|
|
#define APP_HARDWARE_H_ |
|
|
#define APP_HARDWARE_H_ |
|
|
|
|
|
|
|
|
|
|
|
#define REV_1 |
|
|
|
|
|
|
|
|
//-------------------------------------I2C ADRESSES---------------------------------------------------------------------------
|
|
|
//-------------------------------------I2C ADRESSES---------------------------------------------------------------------------
|
|
|
static const uint8_t ADC_ADDRESS = 0x48; |
|
|
static const uint8_t ADC_ADDRESS = 0x48; |
|
|
static const uint8_t DAC1_ADDRESS = 0xC; |
|
|
static const uint8_t DAC1_ADDRESS = 0xC; |
|
@ -18,4 +20,10 @@ static const uint8_t DAC1_ADDRESS = 0xC; |
|
|
#define R_SENSE_DIV_FACT 100 // 100 Ohm sensing resistor
|
|
|
#define R_SENSE_DIV_FACT 100 // 100 Ohm sensing resistor
|
|
|
#define CURR_MAX_UAMP 10000 // 10 mA max.
|
|
|
#define CURR_MAX_UAMP 10000 // 10 mA max.
|
|
|
|
|
|
|
|
|
|
|
|
static const int HUB_PERIOD = 5; |
|
|
|
|
|
static const int ADC_TIMEBASE = 250; |
|
|
|
|
|
static const int ADC_PERIOD = 5; |
|
|
|
|
|
|
|
|
|
|
|
#define LED_PIN 2 // GPIO2
|
|
|
|
|
|
|
|
|
#endif /* APP_HARDWARE_H_ */ |
|
|
#endif /* APP_HARDWARE_H_ */ |