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

📄 jmbadgeboard.h

📁 freescale badge board 开发板测试 源程序
💻 H
字号:
/*!
 * \file    jmbadgeboard.h
 * \brief   Defines and macros for JM Badge Board board
 * \version $Revision: 1.1 $
 * \author  Michael Norman
 */

#ifndef _JMBADGEBOARD_H_
#define _JMBADGEBOARD_H_

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

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



/*******************************************************************/
void ftfbadge_main(void);
void sys_init (void);
void badge_usb_init (void);
void clock_init_battery(void);
void clock_init_usb(void);
void charger_enable (void);
void charger_disable (void);
void rtc_init(byte rtcps);
void USBDemo();
void SleepMode();

extern interrupt VectorNumber_Vrtc void rtc_interrupt(void);
extern interrupt VectorNumber_Vkeyboard void kbi_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 /* _JMBADGEBOARD_H_ */

⌨️ 快捷键说明

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