fix project and more
This commit is contained in:
parent
88b607c42f
commit
e58481c4bb
56 changed files with 128 additions and 27068 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
|
|
@ -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_ */
|
||||
|
|
|
|||
|
|
@ -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_ */
|
||||
|
|
|
|||
|
|
@ -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_ */
|
||||
|
|
|
|||
|
|
@ -67,5 +67,3 @@ void ADC_READ_init(){
|
|||
|
||||
DMA2_Stream0->CR |= DMA_SxCR_EN;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue