2023-08-09 13:24:21 -07:00
|
|
|
#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
|
|
|
|
// *******************************
|
2023-12-10 03:53:56 -08:00
|
|
|
#define NERNST_INPUT_GAIN (2.7f)
|
2023-08-09 13:24:21 -07:00
|
|
|
|
|
|
|
#define AFR_CHANNELS 1
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Nernst voltage & ESR sense
|
|
|
|
// *******************************
|
|
|
|
#define VM_RESISTOR_VALUE (10)
|