You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
763 B
22 lines
763 B
7 years ago
|
//----------------------------------------------------------------------------------------------------------------------------
|
||
|
// Project: Uppsense
|
||
|
// Name: hardware.h
|
||
|
// Author: Maximilian Stiefel
|
||
|
// Date: 09.08.2017
|
||
|
//
|
||
|
// Description:
|
||
|
//
|
||
|
//----------------------------------------------------------------------------------------------------------------------------
|
||
|
|
||
|
#ifndef APP_HARDWARE_H_
|
||
|
#define APP_HARDWARE_H_
|
||
|
|
||
|
//-------------------------------------I2C ADRESSES---------------------------------------------------------------------------
|
||
|
static const uint8_t ADC_ADDRESS = 0x48;
|
||
|
static const uint8_t DAC1_ADDRESS = 0xC;
|
||
|
|
||
|
#define R_SENSE (uint8_t) 100 // 100 Ohm sensing resistor
|
||
|
#define CURR_MAX_UAMP 10000 // 10 mA max.
|
||
|
|
||
|
#endif /* APP_HARDWARE_H_ */
|