⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bt1.c

📁 MSP340例程 适合入门 欢迎大家下载共享
💻 C
字号:
/******************************************
*  功能:
*     设置 Basic Timer 1
*    其中中断函数是只适用用本程序的    
*
******************************************/
#ifndef _MSP430XF449H_
#include <msp430x44x.h>
#endif

#ifndef LED_IN_USE
#include "led1.h"
#endif

 /*****************************************
 *    Initiate basic timer 1
 ******************************************/
 void  init_BT(void){
    BTCTL  =0x06;                           //  Basic Timer 1 interrupt rate
    IE2   |= 0x80;                          // enable basic timer interrupt
 }
 #pragma vector = BASICTIMER_VECTOR 
 __interrupt void  BT_Interrupt(void){
    led_Display();
 }


⌨️ 快捷键说明

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