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.
21 lines
415 B
21 lines
415 B
#ifndef _MSP_TIMER2_H
|
|
#define _MSP_TIMER2_H
|
|
|
|
#include "c_type51.h"
|
|
#include "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);
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|