dsel 8 added , current monitoring restructructing agtempt 1
This commit is contained in:
@ -13,10 +13,9 @@
|
||||
// Convert ADC quants to I_S in mA
|
||||
#define CURR_SENSE_IS_FACTOR ((3.3f / 4096) / 1.2f) // 3.3V / 12bit / 1.2kOhm
|
||||
// Convert ADC quants to I_L in mA
|
||||
#define CURR_SENSE_FACTOR_1A (670 * CURR_SENSE_IS_FACTOR)
|
||||
#define CURR_SENSE_FACTOR_2A (1075 * CURR_SENSE_IS_FACTOR)
|
||||
#define CURR_SENSE_FACTOR_31A (34100 * CURR_SENSE_IS_FACTOR)
|
||||
#define CURR_SENSE_FACTOR_5A (3700 * CURR_SENSE_IS_FACTOR)
|
||||
#define CURR_SENSE_FACTOR_10A (9500 * CURR_SENSE_IS_FACTOR)
|
||||
#define CURR_SENSE_FACTOR_(7.5)A (5450 * CURR_SENSE_IS_FACTOR)
|
||||
#define CURR_SENSE_FACTOR_21A (22700 * CURR_SENSE_IS_FACTOR)
|
||||
|
||||
typedef struct {
|
||||
|
||||
@ -59,6 +59,8 @@ void Error_Handler(void);
|
||||
/* USER CODE END EFP */
|
||||
|
||||
/* Private defines -----------------------------------------------------------*/
|
||||
#define DSEL_8_Pin GPIO_PIN_0
|
||||
#define DSEL_8_GPIO_Port GPIOA
|
||||
#define DSEL_3_Pin GPIO_PIN_12
|
||||
#define DSEL_3_GPIO_Port GPIOB
|
||||
#define DSEL_4_Pin GPIO_PIN_13
|
||||
|
||||
Reference in New Issue
Block a user