Page MenuHomec4science

timer.h
No OneTemporary

File Metadata

Created
Tue, Nov 19, 05:15
#ifndef __TIMER_H__
#define __TIMER_H__
extern volatile unsigned int systime;
#define TIMER_1_START (T1CONbits.TON = 1)
#define TIMER_1_STOP (T1CONbits.TON = 0)
#define TIMER_2_START (T2CONbits.TON = 1)
#define TIMER_2_STOP (T2CONbits.TON = 0)
#define TIMER_2_STOP_AND_CLEAR (T2CONbits.TON = 0); \
(TMR2 = 0x00)
void timer_init();
#endif /* __TIMER_H__*/

Event Timeline