AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 38

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2616
Data types
What a project
consists of
38
To access peripherals in a device, ensure that the device declaration file
(MC9S08GB60.h) is included within the source file; for example:
CodeWarrior C for the HCS08 supports all the normal C types. Also, the types
byte (1 byte), word (2 bytes), dword (4 bytes), and dlong (8 bytes) are defined
unsigned as follows:
A newly created project looks like:
with the following files and directories created automatically:
#include <MC9S08GB60.h>
int mycode(){
}
/* Types definition */
typedef unsigned char byte;
typedef unsigned int word;
typedef unsigned long dword;
typedef unsigned long dlong[2];
Getting Started with HCS08 and CodeWarrior Using C
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA

Related parts for AN2616