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

📄 demo9s08aw60.h

📁 FREESCALE 9S08AW60 程序实例
💻 H
字号:
/******************************************************************************
*
*       Copyright (C) 2006 Freescale Semiconductor, Inc.
*       All Rights Reserved
*
* Filename:     DEMO9S08AW60.h
* Author:       Daniel Kruczek
* Revision:     1.0
*
* Description:	9S08AW60 Demo Board Header File
*
* Notes:        
*
*******************************************************************************/

/* include peripheral declarations */
#include <MC9S08AW60.h>

/* define value for LED's when on and off */
#define ON 1
#define OFF 0

/* define value for pushbutton switches when up (not pressed) and down (pressed) */
/* internal pullups should be enabled on pushbutton switch port pins to ensure   */
/* proper pushbutton switch operation                                            */
#define UP 1
#define DOWN 0

/* define value for dip switches when open and closed                            */
/* internal pullups should be enabled on dip switch port pins to ensure proper   */
/* dip switch operation                                                          */
#define OPEN 1
#define CLOSED 0

/* define LED's */
#define LED0 PTFD_PTFD0
#define LED1 PTFD_PTFD1
#define LED2 PTFD_PTFD2
#define LED3 PTFD_PTFD3
#define LED4 PTFD_PTFD4
#define LED5 PTFD_PTFD5
#define LED6 PTFD_PTFD6
#define LED7 PTFD_PTFD7

/* define pushbutton switches */
#define SW1 PTCD_PTCD2
#define SW2 PTCD_PTCD6
#define SW3 PTDD_PTDD3
#define SW4 PTDD_PTDD2

/* define dip switches */
#define DIP0 PTAD_PTAD0
#define DIP1 PTAD_PTAD1
#define DIP2 PTAD_PTAD2
#define DIP3 PTAD_PTAD3
#define DIP4 PTAD_PTAD4
#define DIP5 PTAD_PTAD5
#define DIP6 PTAD_PTAD6
#define DIP7 PTAD_PTAD7

/* define ATD Inputs */
#define POT PTDD_PTDD0
#define PHOTO PTDD_PTDD1

/* define Accelerometer Inputs and Outputs */
#define XOUT_AMP PTDD_PTDD5
#define YOUT_AMP PTDD_PTDD4
#define XOUT_RAW PTDD_PTDD7
#define YOUT_RAW PTDD_PTDD6
#define ST PTCD_PTCD4


⌨️ 快捷键说明

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