📄 timer.h
字号:
/*
****************************************************************************
* 宁波中科集成电路设计中心 版权所有 Copyright 2005
* http:\\www.nbicc.com
*文件名: timer.h
*程序员: 夏鹏 xpsonny@nbicc.com
*主要内容 定时器
*如有问题或BUG,请登录www.wsn.net.cn 提问或用邮件和作者联系
****************************************************************************
*/
#ifndef _TIMER_H
#define _TIMER_H
#include "type.h"
#include "app.h"
enum {
TIMER_REPEAT = 0,
TIMER_ONE_SHOT = 1,
NUM_TIMERS = 2
};
enum {
TimerM_maxTimerInterval = 230
};
result_t TimerStdControlInit(void); // 初始化
result_t TimerTimerStop(uint8_t id); // 停止指定的Timer
result_t TimerTimerStart(uint8_t id, // 启动Timer
char type, uint32_t interval);
void __attribute((interrupt)) __vector_15(void); //时钟中断服务程序
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -