Subversion Repositories svnkaklik

Rev

Rev 409 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

/******************************************************************************
*Copyright (C) 2003 Freescale Semiconductor, Inc.
*All Rights Reserved
*
* Filename:             DEMO9S08QG8.h
* Author:               r1aald
* Revision:             1.0a
*
* Description:  9S08QG8 Demo Board Header File
* Notes:                Used in Projects QG8_Test.mcp, DEMO9S08QG8_APP.mcp 
*******************************************************************************/

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

/* define value for LED's when on and off */
#define ON 0
#define OFF 1
/* define value for switches when up (not pressed) and down (pressed) */
#define UP 1
#define DOWN 0

/* define LED's */
#define LED1 PTBD_PTBD6
#define LED1_DDR  PTBDD_PTBDD6
#define LED1_MASK PTBD_PTBD6_MASK
#define LED2 PTBD_PTBD7
#define LED2_DDR  PTBDD_PTBDD7
#define LED2_MASK PTBD_PTBD7_MASK

/* define SW's */
#define SW1 PTAD_PTAD2
#define SW1_DDR PTADD_PTADD2
#define SW1_MASK PTAD_PTAD2_MASK
#define SW2 PTAD_PTAD3
#define SW2_DDR PTADD_PTADD3
#define SW2_MASK PTAD_PTAD3_MASK

/* define ATD Inputs */
#define POT APCTL1_ADPC0
#define POT_MASK APCTL1_ADPC0_MASK
#define PHOTO APCTL1_ADPC1
#define PHOTO_MASK APCTL1_ADPC1_MASK

/* define COM_EN */
#define COM_EN PTAD_PTAD4
#define COM_EN_DDR PTADD_PTADD4
#define COM_EN_MASK PTADD_PTADD4_MASK