📄 closetimer4.c
字号:
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include <timer.h>
/* These devices support Timer 4 */
#ifdef _TIMER4
/****************************************************************************
Function Prototype : void CloseTimer4(void)
Include : timer.h
Description : This function turns off the 16-bit timer module.
Arguments : None
Return Value : None
Remarks : This function first disables the 16-bit timer interrupt
and then turns off the timer module. The Interrupt
Flag bit (TxIF) is also cleared.
****************************************************************************/
void CloseTimer4(void)
{
IEC1bits.T4IE = 0; /* Disable the Timer4 interrupt */
T4CONbits.TON=0; /* disable Timer4 */
IFS1bits.T4IF = 0; /* Clear Timer4 interrupt flag */
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -