CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches
Timer.h
Go to the documentation of this file.
1
2/// \file
3
4#include <stdint.h>
5#include <stdbool.h>
6
7
8#define TIMER0_freqeunza 10000
9#define TIMER0_coefficiente_per_millisec (TIMER0_freqeunza /1000)
10#define TIM0_MR0I 1 //!< Abilitazione interrupt timer0
11#define TIM0_MR0S 2 //!< Stop al fondo scala timer0
12#define TIM0_MR0R 4 //!< Reset contatori timer0
13#define TIMER0_start_conteggio LPC_TIM0 -> TCR = 1;
14#define TIMER0_stotp_conteggio LPC_TIM0 -> TCR = 0;
15
16#define TIMER1_start_conteggio LPC_TIM1 -> TCR = 1;
17
18extern volatile bool timer ;
19extern volatile uint32_t ticks ;
20extern volatile uint32_t N ;
21
22
23
24//TIMER.h
25void Aspetta_tanti_ms(int m);
26void SysTick_Handler (void);
27void Imposta_wiper_a_meta_scala_canale_0_I2CA( void );
28void Imposta_wiper_a_meta_scala_canale_1_I2CA( void );
29
30//void TIMER0_setup(void);
31//void TIMER1_setup(void);
32
33
34#define timer_set timer=1;N=0
35
36
void Aspetta_tanti_ms(int m)
The timing function.
Definition: Timer.c:52
void SysTick_Handler(void)
The timing function.
Definition: Timer.c:85