AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 24

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2616
Add file to project
24
/* File: M68DEMO908GB60.h*/
/* include peripheral declarations */
#include <MC9S08GB60.h>
/*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 PTFD_PTFD0
#define LED2 PTFD_PTFD1
#define LED3 PTFD_PTFD2
#define LED4 PTFD_PTFD3
#define LED5 PTFD_PTFD4
/*define switches*/
#define SW1 PTAD_PTAD4
#define SW2 PTAD_PTAD5
#define SW3 PTAD_PTAD6
#define SW4 PTAD_PTAD7
Getting Started with HCS08 and CodeWarrior Using C
5. Enter the following text into the file:
6. After entering the text, select the close window (
7. Press
1. To add the header file to the project, select the desired directory (for
Freescale Semiconductor, Inc.
For More Information On This Product,
the save dialog:
example, “Sources”) in the project manager and press the right mouse
button. The following dialog will appear:
Go to: www.freescale.com
to save the changes made to the file.
). This will bring up
MOTOROLA

Related parts for AN2616