readtimer2.c
来自「Mplab C30编译器」· C语言 代码 · 共 31 行
C
31 行
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include <timer.h>
/***********************************************************************
Function Prototype : unsigned int ReadTimer2(void)
Include : timer.h
Description : This function reads the contents of the 16-bit
Timer register.
Arguments : None
Return Value : None
Remarks : This function returns the contents of the 16-bit
TMRx register.
************************************************************************/
#ifdef _TIMER2
unsigned int ReadTimer2(void)
{
return (TMR2); /* Return the Timer2 register */
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?