X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=aversive%2Ftypes.h;fp=aversive%2Ftypes.h;h=0000000000000000000000000000000000000000;hb=57895b3bb2fe0582c589685b7df34f3968b346ec;hp=6eb3cca6ca52812922e01d01aea0fd7cbe7b3778;hpb=9a9b64112aee5ab26398b46cb13b7e49c292a355;p=protos%2Fxbee-avr.git diff --git a/aversive/types.h b/aversive/types.h deleted file mode 100644 index 6eb3cca..0000000 --- a/aversive/types.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright Droids Corporation, Microb Technology, Eirbot (2005) - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Revision : $Id: types.h,v 1.1.2.1 2007-05-23 17:18:09 zer0 Exp $ - * - */ - -#ifndef _AVERSIVE_TYPES_H_ -#define _AVERSIVE_TYPES_H_ - -#include - -#define U08_MIN 0x00 -#define U08_MAX 0xFF -#define U16_MIN 0x0000 -#define U16_MAX 0xFFFF -#define U32_MIN 0x00000000 -#define U32_MAX 0xFFFFFFFF -#define U64_MIN 0x0000000000000000 -#define U64_MAX 0xFFFFFFFFFFFFFFFF -#define S08_MIN 0x80 -#define S08_MAX 0x7F -#define S16_MIN 0x8000 -#define S16_MAX 0x7FFF -#define S32_MIN 0x80000000 -#define S32_MAX 0x7FFFFFFF -#define S64_MIN 0x8000000000000000 -#define S64_MAX 0x7FFFFFFFFFFFFFFF - -/* you should use uintXX_t instead of uXX which is more standard */ - -/* explicit types u = unsigned, s = signed */ -typedef uint8_t u08; -typedef uint16_t u16; -typedef uint32_t u32; -typedef uint64_t u64; -typedef int8_t s08; -typedef int16_t s16; -typedef int32_t s32; -typedef int64_t s64; - - -#endif /* _AVERSIVE_TYPES_H_ */