You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
550 B

#ifndef _MSP_TIMER2_H
#define _MSP_TIMER2_H
#include "c_type51.h"
#include "../bsp/bsp_config.h"
#include "../ctask/TTSS_tick.h"
#include "msp_uart1.h"
extern void L0_timer2_init(void);
#define L0_timer2_stop(); BITN_0(AUXR, T2R);///
#define L0_timer2_start(); BITN_1(AUXR, T2R);/////定时器2开始计时
#define L0_timer2_int_on(); BITN_1(IE2,ET2);
#define L0_timer2_int_off(); BITN_0(IE2,ET2);
typedef struct
{
/// void (*callback)(Ts_uart_rev_ *p);
// Ts_uart_rev_ *p;
int *p;
}_TS_timer2;
extern _TS_timer2 ts_timer2;
#endif