Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
/******************************************************************************
2
*Copyright (C) 2003 Freescale Semiconductor, Inc.
3
*All Rights Reserved
4
*
5
* Filename:		DEMO9S08QG8.h
6
* Author:		r1aald
7
* Revision:		1.0a
8
*
9
* Description:	9S08QG8 Demo Board Header File
10
* Notes:		Used in Projects QG8_Test.mcp, DEMO9S08QG8_APP.mcp 
11
*******************************************************************************/
12
 
13
/* include peripheral declarations */
14
#include <MC9S08QG8.h> /* include peripheral declarations */
15
 
16
/* define value for LED's when on and off */
17
#define ON 0
18
#define OFF 1
19
/* define value for switches when up (not pressed) and down (pressed) */
20
#define UP 1
21
#define DOWN 0
22
 
23
/* define LED's */
24
#define LED1 PTBD_PTBD6
25
#define LED1_DDR  PTBDD_PTBDD6
26
#define LED1_MASK PTBD_PTBD6_MASK
27
#define LED2 PTBD_PTBD7
28
#define LED2_DDR  PTBDD_PTBDD7
29
#define LED2_MASK PTBD_PTBD7_MASK
30
 
31
/* define SW's */
32
#define SW1 PTAD_PTAD2
33
#define SW1_DDR PTADD_PTADD2
34
#define SW1_MASK PTAD_PTAD2_MASK
35
#define SW2 PTAD_PTAD3
36
#define SW2_DDR PTADD_PTADD3
37
#define SW2_MASK PTAD_PTAD3_MASK
38
 
39
/* define ATD Inputs */
40
#define POT APCTL1_ADPC0
41
#define POT_MASK APCTL1_ADPC0_MASK
42
#define PHOTO APCTL1_ADPC1
43
#define PHOTO_MASK APCTL1_ADPC1_MASK
44
 
45
/* define COM_EN */
46
#define COM_EN PTAD_PTAD4
47
#define COM_EN_DDR PTADD_PTADD4
48
#define COM_EN_MASK PTADD_PTADD4_MASK