start penna zip

This commit is contained in:
PanSi21 2025-11-18 16:01:22 +01:00
parent e60146cdfe
commit 88b607c42f
Signed by untrusted user who does not match committer: PanSi21
GPG key ID: 198E46F625BADD13
188 changed files with 236868 additions and 0 deletions

15
Exp01/Core/Inc/ADC_READ.h Normal file
View file

@ -0,0 +1,15 @@
#include <stdint.h>
#define N_MEAS 100 // number of measurements
#define N_PRE 30
#define N_POST N_MEAS - N_PRE
#define TH_lo (0.90/3.3) * (1<<16)
#define TH_hi (1/3.3) * (1<<16)
extern uint16_t results[N_MEAS+1];
extern uint8_t DC;
void ADC_calibrate();
void DMA_init();
void ADC_READ_init();
void ADC_READ_interrupt();