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

📄 ledapp.h

📁 LED APPLICATION MCF51JM
💻 H
字号:
/*!
 * \file    ledapp.h
 * \brief   Defines and macros for FTF Badge 2008 board
 * \version $Revision: 1.1 $
 * \author  Anthony Huereca
 */

#ifndef _FTFBADGE2008_H_
#define _FTFBADGE2008_H_

/*******************************************************************/

#include <hidef.h>
#include "derivative.h"


/*******************************************************************/
void LedApp(void);
void sys_init (void);
void clock_init_battery(void); 

extern interrupt VectorNumber_Vrtc void rtc_interrupt(void);
/*******************************************************************/


/* MC3467x Interface Pins */
#define MC3467X_CHG     PTGD_PTGD0  /*!< MC3467x Charge indicator */
#define MC3467X_PPR     PTGD_PTGD1  /*!< MC3467x Power Present indicator */
#define MC3467X_EN      PTGD_PTGD2  /*!< MC3467x Enable */

/* MMA7260 Interface Pins */
#define MMA7260_SLEEP   PTCD_PTCD3  /*!< MMA7260 Sleep Mode control */
#define MMA7260_GSEL1   PTCD_PTCD4  /*!< MMA7260 G Select 1 */
#define MMA7260_GSEL2   PTCD_PTCD5  /*!< MMA7260 G Select 2 */

/* MPR083 Interface Pins */
#define MPR083_ATTN     PTCD_PTCD6  /*!< MPR083 Attention control */

/* Red/Green LED Pins */
#define LED_RED         PTFD_PTFD0  /*!< Red portion of R/G LED */
#define LED_GRN         PTFD_PTFD1  /*!< Green portion of R/G LED */

/* Misc Pins */
#define SOUNDER         PTFD_PTFD2  /*!< Sounder control pin */
#define IR              PTCD_PTCD2  /*!< IR control pin */

/* ON/OFF State Indicators */
#define ON      0   /*! Active-low ON indicator */
#define OFF     1   /*! Active-low OFF indicator */

/*******************************************************************/

#endif /* _FTFBADGE2008_H_ */

⌨️ 快捷键说明

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