📄 bt1.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 + -