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

📄 indication.h

📁 小区巡检系统,MSPF437,里面主要参考的内容为TI单片机的低功耗处理,仅供参考,不能用于商业.
💻 H
字号:
/* indication.h */

#ifndef INDICATION_H
#define INDICATION_H


#ifdef __cplusplus
extern "C"
{
#endif

#define LED_ON() (LED_OUT&=~LED)
#define LED_OFF() (LED_OUT|=LED)
#define BEEP_ON() (BEEP_OUT&=~BEEP)
#define BEEP_OFF() (BEEP_OUT|=BEEP)
#define IND_ON() {P3OUT&=~(LED);P2OUT&=~(BEEP);}
#define IND_OFF() {P3OUT|=(LED);P2OUT|=(BEEP);}

extern void led_indicating_on(void);
extern void led_indicating_off(void);
extern void beep_indicating_on(void);
extern void beep_indicating_off(void);

#ifdef __cplusplus
}
#endif


#endif /* INDICATION_H */

⌨️ 快捷键说明

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