timerstop.c

来自「CHP 2 - Real-Time Digital Signal Process」· C语言 代码 · 共 30 行

C
30
字号
// 
//  Project: Experiment 2.10.3 DSP Timer - Chapter 2 
//  File name: timerStop.c   
//  Function(s): stopTimer()        
//
//  Description: This function shows how to stop the DSP timer
//
//  For the book "Real Time Digital Signal Processing: 
//                Implementation and Application, 2nd Ed"
//                By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
//                Publisher: John Wiley and Sons, Ltd
//
//  Tools used: CCS v.2.12.07
//              TMS320VC5510 DSK Rev-C
//

#include "timer.h"
                                      
#pragma CODE_SECTION(stopTimer,  ".text:example:timer0");

void stopTimer(void)
{     
  *TCR0 |= TSS_BIT;              // Stop timer  
  *IFR0 |= TINT_BIT;             // Clear associated IFR bit    
}




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?