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.
25 lines
629 B
25 lines
629 B
#ifndef INIT_TIMER0_H
|
|
#define INIT_TIMER0_H
|
|
|
|
#include "../clib/type.h"
|
|
|
|
#include "../bsp/bsp_config.h"
|
|
#include "../ctask/tick.h"
|
|
|
|
extern void L0_timer0_Init(void);
|
|
#define L0_timer0_open(x) TR0 = x //
|
|
|
|
// 他和t_10ms 关联,如果t_10ms递增为1时间隔为(D_TIMER0_10MS_COUNT*定时器间隔)
|
|
//#define D_TIMER0_10MS_COUNT 1 //定时器为 10ms一中断
|
|
|
|
#define D_TIMER0_50MS_COUNT 1 //定时器为 50ms一中断
|
|
#define D_TIMER0_5MS_COUNT 1 //定时器为 50ms一中断
|
|
|
|
|
|
#define D_1us_delay_para 1
|
|
#define D_1ms_delay_para 993
|
|
|
|
#define L0_delay_1us() NOP();NOP(); // 11.05926M
|
|
#endif
|
|
|
|
|
|
|