initial commit for tests

This commit is contained in:
Janosch
2022-10-10 11:46:30 +01:00
commit 0e8e1e4db6
20 changed files with 1515 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef ANAIN_PRJ_H_INCLUDED
#define ANAIN_PRJ_H_INCLUDED
#include "hwdefs.h"
/* Here we specify how many samples are combined into one filtered result. Following values are possible:
* - NUM_SAMPLES = 1: Most recent raw value is returned
* - NUM_SAMPLES = 3: Median of last 3 values is returned
* - NUM_SAMPLES = 9: Median of last 3 medians is returned
* - NUM_SAMPLES = 12: Average of last 4 medians is returned
*/
#define NUM_SAMPLES 12
#define SAMPLE_TIME ADC_SMPR_SMP_239DOT5CYC //Sample&Hold time for each pin. Increases sample time, might increase accuracy
//Here you specify a list of analog inputs, see main.cpp on how to use them
#define ANA_IN_LIST \
ANA_IN_ENTRY(cablelim, GPIOA, 0) \
ANA_IN_ENTRY(uaux, GPIOA, 5) \
#endif // ANAIN_PRJ_H_INCLUDED