mirror of https://github.com/rusefi/wideband.git
some per board config
This commit is contained in:
parent
a376b54b55
commit
2849b984dd
|
@ -0,0 +1,12 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// Fundamental board constants
|
||||||
|
#define VCC_VOLTS (3.3f)
|
||||||
|
#define HALF_VCC (VCC_VOLTS / 2)
|
||||||
|
#define ADC_MAX_COUNT (4095)
|
||||||
|
#define ADC_OVERSAMPLE 24
|
||||||
|
|
||||||
|
// *******************************
|
||||||
|
// Nernst voltage & ESR sense
|
||||||
|
// *******************************
|
||||||
|
#define NERNST_INPUT_GAIN (1 / 2.7f)
|
|
@ -0,0 +1,12 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// Fundamental board constants
|
||||||
|
#define VCC_VOLTS (3.3f)
|
||||||
|
#define HALF_VCC (VCC_VOLTS / 2)
|
||||||
|
#define ADC_MAX_COUNT (4095)
|
||||||
|
#define ADC_OVERSAMPLE 24
|
||||||
|
|
||||||
|
// *******************************
|
||||||
|
// Nernst voltage & ESR sense
|
||||||
|
// *******************************
|
||||||
|
#define NERNST_INPUT_GAIN (1 / 3.0f)
|
|
@ -1,17 +1,11 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "io_pins.h"
|
#include "io_pins.h"
|
||||||
|
#include "wideband_board_config.h"
|
||||||
// Fundamental board constants
|
|
||||||
#define VCC_VOLTS (3.3f)
|
|
||||||
#define HALF_VCC (VCC_VOLTS / 2)
|
|
||||||
#define ADC_MAX_COUNT (4095)
|
|
||||||
#define ADC_OVERSAMPLE 24
|
|
||||||
|
|
||||||
// *******************************
|
// *******************************
|
||||||
// Nernst voltage & ESR sense
|
// Nernst voltage & ESR sense
|
||||||
// *******************************
|
// *******************************
|
||||||
#define NERNST_INPUT_GAIN (1 / 2.7f)
|
|
||||||
|
|
||||||
// Nernst AC injection resistor value
|
// Nernst AC injection resistor value
|
||||||
#define ESR_SUPPLY_R (22000)
|
#define ESR_SUPPLY_R (22000)
|
||||||
|
|
Loading…
Reference in New Issue