fix project and more

This commit is contained in:
PanSi21 2025-11-19 05:41:34 +01:00
parent 88b607c42f
commit e58481c4bb
Signed by untrusted user who does not match committer: PanSi21
GPG key ID: 198E46F625BADD13
56 changed files with 128 additions and 27068 deletions

View file

@ -1,3 +1,6 @@
#ifndef INC_ADC_READ_H_
#define INC_ADC_READ_H_
#include <stdint.h>
#define N_MEAS 100 // number of measurements
@ -13,3 +16,5 @@ void ADC_calibrate();
void DMA_init();
void ADC_READ_init();
void ADC_READ_interrupt();
#endif /* INC_ADC_READ_H_ */

View file

@ -1,3 +1,6 @@
#ifndef INC_DEXP_H_
#define INC_DEXP_H_
#include <stdint.h>
#define AMP 40000 // ampiezza
@ -7,3 +10,5 @@
#define EXP2 0.88250*(1<<10) // valore numerico exp(-1/T2)
void eval_dexp(int a, int t1, int t2, uint16_t* espo);
#endif /* INC_DEXP_H_ */

View file

@ -5,8 +5,8 @@
* Author: utente
*/
// #ifndef INC_ESPE_SERIALE__H_
// #define INC_ESPE_SERIALE__H_
#ifndef INC_ESPE_SERIALE__H_
#define INC_ESPE_SERIALE__H_
#define SEND_CHAR 's'
#define ACQUIRE_CHAR 'a'
@ -18,3 +18,5 @@
void ESPE_USART_interrupt(void);
void USART_init(void);
#endif /* INC_ESPE_SERIALE__H_ */

View file

@ -1,3 +1,6 @@
#ifndef INC_SEMAPHORE_H_
#define INC_SEMAPHORE_H_
#define on_0 (1<<0) // GPIOB
#define off_0 (1<<(0+16))
#define on_1 (1<<1) // GPIOE
@ -9,3 +12,5 @@
void SEMAPHORE_TIM7_interrupt(void);
void SEMAPHORE_init(void);
#endif /* INC_SEMAPHORE_H_ */

View file

@ -67,5 +67,3 @@ void ADC_READ_init(){
DMA2_Stream0->CR |= DMA_SxCR_EN;
}