some per board config

This commit is contained in:
Matthew Kennedy 2022-01-28 11:21:38 -08:00
parent a376b54b55
commit 2849b984dd
3 changed files with 25 additions and 7 deletions

View File

@ -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)

View File

@ -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)

View File

@ -1,17 +1,11 @@
#pragma once
#include "io_pins.h"
// Fundamental board constants
#define VCC_VOLTS (3.3f)
#define HALF_VCC (VCC_VOLTS / 2)
#define ADC_MAX_COUNT (4095)
#define ADC_OVERSAMPLE 24
#include "wideband_board_config.h"
// *******************************
// Nernst voltage & ESR sense
// *******************************
#define NERNST_INPUT_GAIN (1 / 2.7f)
// Nernst AC injection resistor value
#define ESR_SUPPLY_R (22000)