bt1.c

来自「这是MSP430F147的一本程序开发语言书,本书内容好」· C语言 代码 · 共 21 行

C
21
字号
/******************************************
*  功能:
*     设置 Basic Timer 1
*    其中中断函数是只适用用本程序的    
*
******************************************/
#ifndef _MSP430XF449H_
#include <msp430x44x.h>
#endif

 /*****************************************
 *    Initiate basic timer 1
 ******************************************/
 void  init_BT(void){
    BTCTL  =0x06;                           //  Basic Timer 1 interrupt rate
    IE2   |= 0x80;                          // enable basic timer interrupt
 }
 
 

⌨️ 快捷键说明

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