Just4Trionic - CAN and BDM FLASH programmer for Saab cars

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sizedefs.h Source File

sizedefs.h

00001 /*******************************************************************************
00002 
00003 sizedefs.h - definitions of types used in Just4Trionic by Just4pLeisure
00004 (c) 2010 by Sophie Dexter
00005 portions (c) 2009, 2010 by Janis Silins (johnc)
00006 
00007 A derivative work based on:  
00008  * sizedefs.h - define parameter types for BDM package
00009  * Copyright (C) 1992 by Scott Howard, all rights reserved
00010  * Permission is hereby granted to freely copy and use this code or derivations thereof
00011  * as long as no charge is made to anyone for its use
00012  *
00013  * this file defines the types BYTE, WORD, and LONG to declare types
00014  * that match the data sizes used in the target microcontroller(s)
00015  * BYTE is one byte, WORD is two bytes, LONG is 4 bytes
00016  * these are all unsigned quantities
00017  * change these definitions if you are using a compiler with different default sizes
00018  */
00019 
00020 /*******************************************************************************
00021 
00022 WARNING: Use at your own risk, sadly this software comes with no guarantees.
00023 This software is provided 'free' and in good faith, but the author does not
00024 accept liability for any damage arising from its use.
00025 
00026 *******************************************************************************/
00027 
00028 #ifndef __SIZEDEFS_H__
00029 #define __SIZEDEFS_H__
00030 
00031 #define BYTE unsigned char
00032 // For MBED / ARM Cortex3 use 'unsigned short' for WORD (2 bytes)
00033 #define WORD unsigned short
00034 #define LONG unsigned long
00035 
00036 #define uint8_t unsigned char
00037 #define uint16_t unsigned short
00038 #define uint32_t unsigned long
00039 
00040 #endif
00041 
00042 /* end of sizedefs.h */