[tuxdroid-svn] r1146 - in firmware/fuxusb/trunk: . lib_c src
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2008-05-14 13:47:43
|
Author: Paul_R Date: 2008-05-14 15:47:30 +0200 (Wed, 14 May 2008) New Revision: 1146 Added: firmware/fuxusb/trunk/lib_c/ firmware/fuxusb/trunk/lib_c/stdint.h Removed: firmware/fuxusb/trunk/src/lib_c/ Modified: firmware/fuxusb/trunk/fuxusb.Opt firmware/fuxusb/trunk/fuxusb.Uv2 firmware/fuxusb/trunk/src/config.h firmware/fuxusb/trunk/src/global.h firmware/fuxusb/trunk/src/i2c.h Log: * Moved lib_c/stdint.h from src/ to ./ to be compatible with the externals headers (api.h / commands.h / etc). Replaced the #include of this headers by <stdint.h> Modified: firmware/fuxusb/trunk/fuxusb.Opt =================================================================== --- firmware/fuxusb/trunk/fuxusb.Opt 2008-05-14 13:34:46 UTC (rev 1145) +++ firmware/fuxusb/trunk/fuxusb.Opt 2008-05-14 13:47:30 UTC (rev 1146) @@ -16,14 +16,14 @@ GRPOPT 3,(headers),1,0,0 OPTFFF 1,1,1,16777216,0,33,35,0,<.\src\main.c><main.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,66,0,0,0,66,0,0,0,168,3,0,0,43,1,0,0 } -OPTFFF 1,2,1,486539264,0,15,15,0,<.\src\global.c><global.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,0,0,22,0,0,0,124,3,0,0,255,0,0,0 } +OPTFFF 1,2,1,218103809,0,19,19,0,<.\src\global.c><global.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,252,255,255,255,233,255,255,255,22,0,0,0,22,0,0,0,124,3,0,0,255,0,0,0 } OPTFFF 1,3,1,0,0,47,47,0,<.\src\usb_task.c><usb_task.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,44,0,0,0,142,3,0,0,17,1,0,0 } OPTFFF 1,4,1,67108864,0,952,952,0,<.\src\usb_enum.c><usb_enum.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,0,0,22,0,0,0,124,3,0,0,255,0,0,0 } OPTFFF 1,5,1,0,0,1,1,0,<.\src\usb_ep.c><usb_ep.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,3,0,0,233,0,0,0 } OPTFFF 1,6,1,855638016,0,163,163,0,<.\src\usb_commands.c><usb_commands.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,0,0,22,0,0,0,102,3,0,0,73,1,0,0 } OPTFFF 1,7,1,318767104,0,0,0,0,<.\src\usb_misc.c><usb_misc.c> OPTFFF 1,8,1,335544320,0,81,81,0,<.\src\spi_task.c><spi_task.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,110,0,0,0,110,0,0,0,212,3,0,0,87,1,0,0 } -OPTFFF 1,9,1,1,0,207,224,0,<.\src\bootloader.c><bootloader.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,66,0,0,0,66,0,0,0,146,3,0,0,117,1,0,0 } +OPTFFF 1,9,1,0,0,207,224,0,<.\src\bootloader.c><bootloader.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,66,0,0,0,66,0,0,0,146,3,0,0,117,1,0,0 } OPTFFF 1,10,1,553648128,0,23,23,0,<.\src\i2c.c><i2c.c> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,0,0,0,88,0,0,0,190,3,0,0,65,1,0,0 } OPTFFF 1,11,1,721420288,0,0,0,0,<.\src\fifo_spk.c><fifo_spk.c> OPTFFF 1,12,1,0,0,0,0,0,<.\src\fifo_mic.c><fifo_mic.c> @@ -34,14 +34,17 @@ OPTFFF 2,17,1,0,0,0,0,0,<.\src\lib_mcu\uart\uart_lib.c><uart_lib.c> OPTFFF 2,18,1,167772160,0,0,0,0,<.\src\spi_lib.c><spi_lib.c> OPTFFF 2,19,1,234881024,0,0,0,0,<.\src\lib_mcu\fa-usb\flash_api.c><flash_api.c> -OPTFFF 3,20,5,0,0,1,1,0,<.\src\config.h><config.h> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,0,0,23,0,0,0,102,3,0,0,74,1,0,0 } -OPTFFF 3,21,5,0,0,0,0,0,<.\src\version.h><version.h> +OPTFFF 3,20,5,150994944,0,9,25,0,<.\src\config.h><config.h> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,252,255,255,255,233,255,255,255,22,0,0,0,23,0,0,0,102,3,0,0,74,1,0,0 } +OPTFFF 3,21,5,0,0,15,15,0,<.\src\version.h><version.h> { 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,44,0,0,0,146,3,0,0,8,1,0,0 } -ExtF <.\src\config.h> 1,1,0,{ 44,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,252,255,255,255,233,255,255,255,22,0,0,0,23,0,0,0,102,3,0,0,74,1,0,0 } -ExtF <.\src\global.h> 1,1,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,252,255,255,255,233,255,255,255,44,0,0,0,44,0,0,0,124,3,0,0,95,1,0,0 } -ExtF <.\src\i2c.h> 33,43,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,252,255,255,255,233,255,255,255,88,0,0,0,88,0,0,0,168,3,0,0,139,1,0,0 } -ExtF <.\SRC\bootloader.h> 37,37,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,233,255,255,255,22,0,0,0,22,0,0,0,102,3,0,0,73,1,0,0 } -ExtF <.\SRC\usb_commands.h> 27,41,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,233,255,255,255,44,0,0,0,44,0,0,0,124,3,0,0,95,1,0,0 } +ExtF <.\src\config.h> 9,25,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,252,255,255,255,233,255,255,255,22,0,0,0,23,0,0,0,102,3,0,0,74,1,0,0 } +ExtF <.\src\version.h> 15,15,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,44,0,0,0,146,3,0,0,8,1,0,0 } +ExtF <.\src\global.h> 1,14,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,252,255,255,255,233,255,255,255,44,0,0,0,44,0,0,0,124,3,0,0,95,1,0,0 } +ExtF <.\src\i2c.h> 33,43,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,88,0,0,0,88,0,0,0,168,3,0,0,139,1,0,0 } +ExtF <.\SRC\bootloader.h> 37,37,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,0,0,22,0,0,0,102,3,0,0,73,1,0,0 } +ExtF <.\SRC\usb_commands.h> 11,11,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,44,0,0,0,124,3,0,0,95,1,0,0 } +ExtF <C:\KEIL\C51\INC\STDIO.H> 1,1,0,{ 44,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,252,255,255,255,233,255,255,255,65,0,0,0,66,0,0,0,167,3,0,0,30,1,0,0 } +ExtF <.\SRC\COMMON\defines.h> 23,34,0,{ 44,0,0,0,0,0,0,0,3,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,233,255,255,255,44,0,0,0,44,0,0,0,124,3,0,0,95,1,0,0 } TARGOPT 1, (fuxusb) CLK51=32000000 Modified: firmware/fuxusb/trunk/fuxusb.Uv2 =================================================================== --- firmware/fuxusb/trunk/fuxusb.Uv2 2008-05-14 13:34:46 UTC (rev 1145) +++ firmware/fuxusb/trunk/fuxusb.Uv2 2008-05-14 13:47:30 UTC (rev 1146) @@ -49,7 +49,7 @@ EnvLib () EnvReg () OrgReg () - TgStat=9 + TgStat=0 OutDir (.\obj\) OutName (fuxusb.aof) GenApp=1 Added: firmware/fuxusb/trunk/lib_c/stdint.h =================================================================== --- firmware/fuxusb/trunk/lib_c/stdint.h (rev 0) +++ firmware/fuxusb/trunk/lib_c/stdint.h 2008-05-14 13:47:30 UTC (rev 1146) @@ -0,0 +1,560 @@ +/* + * ISO/IEC 9899:1999 7.18 Integer types <stdint.h> + */ + +#ifndef __STDINT_H_ +#define __STDINT_H_ + +/** \defgroup avr_stdint <stdint.h>: Standard Integer Types + \code #include <stdint.h> \endcode + + Use [u]intN_t if you need exactly N bits. + + Since these typedefs are mandated by the C99 standard, they are preferred + over rolling your own typedefs. */ + +/* Integer types */ + +/** \name Exact-width integer types + Integer types having exactly the specified width */ + +/*@{*/ + +/** \ingroup avr_stdint + 8-bit signed type. */ + +typedef signed char int8_t; + +/** \ingroup avr_stdint + 8-bit unsigned type. */ + +typedef unsigned char uint8_t; + +/** \ingroup avr_stdint + 16-bit signed type. */ + +typedef signed int int16_t; + +/** \ingroup avr_stdint + 16-bit unsigned type. */ + +typedef unsigned int uint16_t; + +/** \ingroup avr_stdint + 32-bit signed type. */ + +typedef signed long int int32_t; + +/** \ingroup avr_stdint + 32-bit unsigned type. */ + +typedef unsigned long int uint32_t; + +/** \ingroup avr_stdint + 64-bit signed type. */ + +// typedef signed long long int int64_t; + +/** \ingroup avr_stdint + 64-bit unsigned type. */ + +// typedef unsigned long long int uint64_t; + +/*@}*/ + +/** \name Integer types capable of holding object pointers + These allow you to declare variables of the same size as a pointer. */ + +/*@{*/ + +/** \ingroup avr_stdint + Signed pointer compatible type. */ + +typedef int16_t intptr_t; + +/** \ingroup avr_stdint + Unsigned pointer compatible type. */ + +typedef uint16_t uintptr_t; + +/*@}*/ + +/** \name Minimum-width integer types + Integer types having at least the specified width */ + +/*@{*/ + +/** \ingroup avr_stdint + signed int with at least 8 bits. */ + +typedef int8_t int_least8_t; + +/** \ingroup avr_stdint + unsigned int with at least 8 bits. */ + +typedef uint8_t uint_least8_t; + +/** \ingroup avr_stdint + signed int with at least 16 bits. */ + +typedef int16_t int_least16_t; + +/** \ingroup avr_stdint + unsigned int with at least 16 bits. */ + +typedef uint16_t uint_least16_t; + +/** \ingroup avr_stdint + signed int with at least 32 bits. */ + +typedef int32_t int_least32_t; + +/** \ingroup avr_stdint + unsigned int with at least 32 bits. */ + +typedef uint32_t uint_least32_t; + +/** \ingroup avr_stdint + signed int with at least 64 bits. */ + +// typedef int64_t int_least64_t; + +/** \ingroup avr_stdint + unsigned int with at least 64 bits. */ + +// typedef uint64_t uint_least64_t; + +/*@}*/ + + +/** \name Fastest minimum-width integer types + Integer types being usually fastest having at least the specified width */ + +/*@{*/ + +/** \ingroup avr_stdint + fastest signed int with at least 8 bits. */ + +typedef int8_t int_fast8_t; + +/** \ingroup avr_stdint + fastest unsigned int with at least 8 bits. */ + +typedef uint8_t uint_fast8_t; + +/** \ingroup avr_stdint + fastest signed int with at least 16 bits. */ + +typedef int16_t int_fast16_t; + +/** \ingroup avr_stdint + fastest unsigned int with at least 16 bits. */ + +typedef uint16_t uint_fast16_t; + +/** \ingroup avr_stdint + fastest signed int with at least 32 bits. */ + +typedef int32_t int_fast32_t; + +/** \ingroup avr_stdint + fastest unsigned int with at least 32 bits. */ + +typedef uint32_t uint_fast32_t; + +/** \ingroup avr_stdint + fastest signed int with at least 64 bits. */ + +// typedef int64_t int_fast64_t; + +/** \ingroup avr_stdint + fastest unsigned int with at least 64 bits. */ + +// typedef uint64_t uint_fast64_t; + +/*@}*/ + + +/** \name Greatest-width integer types + Types designating integer data capable of representing any value of + any integer type in the corresponding signed or unsigned category */ + +/*@{*/ + +/** \ingroup avr_stdint + largest signed int available. */ + +// typedef int64_t intmax_t; + +/** \ingroup avr_stdint + largest unsigned int available. */ + +// typedef uint64_t uintmax_t; + +/*@}*/ + +/* Helping macro */ +#ifndef __CONCAT +#define __CONCATenate(left, right) left ## right +#define __CONCAT(left, right) __CONCATenate(left, right) +#endif + +#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) + +/** \name Limits of specified-width integer types + C++ implementations should define these macros only when + __STDC_LIMIT_MACROS is defined before <stdint.h> is included */ + +/*@{*/ + +/** \ingroup avr_stdint + largest positive value an int8_t can hold. */ + +#define INT8_MAX 0x7f + +/** \ingroup avr_stdint + smallest negative value an int8_t can hold. */ + +#define INT8_MIN (-INT8_MAX - 1) + +/** \ingroup avr_stdint + largest value an uint8_t can hold. */ + +#define UINT8_MAX (__CONCAT(INT8_MAX, U) * 2U + 1U) + +/** \ingroup avr_stdint + largest positive value an int16_t can hold. */ + +#define INT16_MAX 0x7fff + +/** \ingroup avr_stdint + smallest negative value an int16_t can hold. */ + +#define INT16_MIN (-INT16_MAX - 1) + +/** \ingroup avr_stdint + largest value an uint16_t can hold. */ + +#define UINT16_MAX (__CONCAT(INT16_MAX, U) * 2U + 1U) + +/** \ingroup avr_stdint + largest positive value an int32_t can hold. */ + +#define INT32_MAX 0x7fffffffL + +/** \ingroup avr_stdint + smallest negative value an int32_t can hold. */ + +#define INT32_MIN (-INT32_MAX - 1L) + +/** \ingroup avr_stdint + largest value an uint32_t can hold. */ + +#define UINT32_MAX (__CONCAT(INT32_MAX, U) * 2UL + 1UL) + +/** \ingroup avr_stdint + largest positive value an int64_t can hold. */ + +#define INT64_MAX 0x7fffffffffffffffLL + +/** \ingroup avr_stdint + smallest negative value an int64_t can hold. */ + +#define INT64_MIN (-INT64_MAX - 1LL) + +/** \ingroup avr_stdint + largest value an uint64_t can hold. */ + +#define UINT64_MAX (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL) + +/*@}*/ + +/** \name Limits of minimum-width integer types */ +/*@{*/ + +/** \ingroup avr_stdint + largest positive value an int_least8_t can hold. */ + +#define INT_LEAST8_MAX INT8_MAX + +/** \ingroup avr_stdint + smallest negative value an int_least8_t can hold. */ + +#define INT_LEAST8_MIN INT8_MIN + +/** \ingroup avr_stdint + largest value an uint_least8_t can hold. */ + +#define UINT_LEAST8_MAX UINT8_MAX + +/** \ingroup avr_stdint + largest positive value an int_least16_t can hold. */ + +#define INT_LEAST16_MAX INT16_MAX + +/** \ingroup avr_stdint + smallest negative value an int_least16_t can hold. */ + +#define INT_LEAST16_MIN INT16_MIN + +/** \ingroup avr_stdint + largest value an uint_least16_t can hold. */ + +#define UINT_LEAST16_MAX UINT16_MAX + +/** \ingroup avr_stdint + largest positive value an int_least32_t can hold. */ + +#define INT_LEAST32_MAX INT32_MAX + +/** \ingroup avr_stdint + smallest negative value an int_least32_t can hold. */ + +#define INT_LEAST32_MIN INT32_MIN + +/** \ingroup avr_stdint + largest value an uint_least32_t can hold. */ + +#define UINT_LEAST32_MAX UINT32_MAX + +/** \ingroup avr_stdint + largest positive value an int_least64_t can hold. */ + +#define INT_LEAST64_MAX INT64_MAX + +/** \ingroup avr_stdint + smallest negative value an int_least64_t can hold. */ + +#define INT_LEAST64_MIN INT64_MIN + +/** \ingroup avr_stdint + largest value an uint_least64_t can hold. */ + +#define UINT_LEAST64_MAX UINT64_MAX + +/*@}*/ + +/** \name Limits of fastest minimum-width integer types */ + +/*@{*/ + +/** \ingroup avr_stdint + largest positive value an int_fast8_t can hold. */ + +#define INT_FAST8_MAX INT8_MAX + +/** \ingroup avr_stdint + smallest negative value an int_fast8_t can hold. */ + +#define INT_FAST8_MIN INT8_MIN + +/** \ingroup avr_stdint + largest value an uint_fast8_t can hold. */ + +#define UINT_FAST8_MAX UINT8_MAX + +/** \ingroup avr_stdint + largest positive value an int_fast16_t can hold. */ + +#define INT_FAST16_MAX INT16_MAX + +/** \ingroup avr_stdint + smallest negative value an int_fast16_t can hold. */ + +#define INT_FAST16_MIN INT16_MIN + +/** \ingroup avr_stdint + largest value an uint_fast16_t can hold. */ + +#define UINT_FAST16_MAX UINT16_MAX + +/** \ingroup avr_stdint + largest positive value an int_fast32_t can hold. */ + +#define INT_FAST32_MAX INT32_MAX + +/** \ingroup avr_stdint + smallest negative value an int_fast32_t can hold. */ + +#define INT_FAST32_MIN INT32_MIN + +/** \ingroup avr_stdint + largest value an uint_fast32_t can hold. */ + +#define UINT_FAST32_MAX UINT32_MAX + +/** \ingroup avr_stdint + largest positive value an int_fast64_t can hold. */ + +#define INT_FAST64_MAX INT64_MAX + +/** \ingroup avr_stdint + smallest negative value an int_fast64_t can hold. */ + +#define INT_FAST64_MIN INT64_MIN + +/** \ingroup avr_stdint + largest value an uint_fast64_t can hold. */ + +#define UINT_FAST64_MAX UINT64_MAX + +/*@}*/ + +/** \name Limits of integer types capable of holding object pointers */ + +/*@{*/ + +/** \ingroup avr_stdint + largest positive value an intptr_t can hold. */ + +#define INTPTR_MAX INT16_MAX + +/** \ingroup avr_stdint + smallest negative value an intptr_t can hold. */ + +#define INTPTR_MIN INT16_MIN + +/** \ingroup avr_stdint + largest value an uintptr_t can hold. */ + +#define UINTPTR_MAX UINT16_MAX + +/*@}*/ + +/** \name Limits of greatest-width integer types */ + +/*@{*/ + +/** \ingroup avr_stdint + largest positive value an intmax_t can hold. */ + +#define INTMAX_MAX INT64_MAX + +/** \ingroup avr_stdint + smallest negative value an intmax_t can hold. */ + +#define INTMAX_MIN INT64_MIN + +/** \ingroup avr_stdint + largest value an uintmax_t can hold. */ + +#define UINTMAX_MAX UINT64_MAX + +/*@}*/ + +/** \name Limits of other integer types + C++ implementations should define these macros only when + __STDC_LIMIT_MACROS is defined before <stdint.h> is included */ + +/*@{*/ + +/** \ingroup avr_stdint + largest positive value a ptrdiff_t can hold. */ + +#define PTRDIFF_MAX INT16_MAX + +/** \ingroup avr_stdint + smallest negative value a ptrdiff_t can hold. */ + +#define PTRDIFF_MIN INT16_MIN + + +/* Limits of sig_atomic_t */ +/* signal.h is currently not implemented (not avr/signal.h) */ + +/** \ingroup avr_stdint + largest positive value a sig_atomic_t can hold. */ + +#define SIG_ATOMIC_MAX INT8_MAX + +/** \ingroup avr_stdint + smallest negative value a sig_atomic_t can hold. */ + +#define SIG_ATOMIC_MIN INT8_MIN + + +/** \ingroup avr_stdint + largest value a size_t can hold. */ + +#define SIZE_MAX (__CONCAT(INT16_MAX, U)) + + +/* Limits of wchar_t */ +/* wchar.h is currently not implemented */ +/* #define WCHAR_MAX */ +/* #define WCHAR_MIN */ + + +/* Limits of wint_t */ +/* wchar.h is currently not implemented */ +/* #define WINT_MAX */ +/* #define WINT_MIN */ + + +#endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ + +#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) + +/** \name Macros for integer constants + C++ implementations should define these macros only when + __STDC_CONSTANT_MACROS is defined before <stdint.h> is included. + + These definitions are valid for integer constants without suffix and + for macros defined as integer constant without suffix */ + +/** \ingroup avr_stdint + define a constant of type int8_t */ + +#define INT8_C(value) ((int8_t) value) + +/** \ingroup avr_stdint + define a constant of type uint8_t */ + +#define UINT8_C(value) ((uint8_t) __CONCAT(value, U)) + +/** \ingroup avr_stdint + define a constant of type int16_t */ + +#define INT16_C(value) value + +/** \ingroup avr_stdint + define a constant of type uint16_t */ + +#define UINT16_C(value) __CONCAT(value, U) + +/** \ingroup avr_stdint + define a constant of type int32_t */ + +#define INT32_C(value) __CONCAT(value, L) + +/** \ingroup avr_stdint + define a constant of type uint32_t */ + +#define UINT32_C(value) __CONCAT(value, UL) + +/** \ingroup avr_stdint + define a constant of type int64_t */ + +#define INT64_C(value) __CONCAT(value, LL) + +/** \ingroup avr_stdint + define a constant of type uint64_t */ + +#define UINT64_C(value) __CONCAT(value, ULL) + +/** \ingroup avr_stdint + define a constant of type intmax_t */ + +#define INTMAX_C(value) __CONCAT(value, LL) + +/** \ingroup avr_stdint + define a constant of type uintmax_t */ + +#define UINTMAX_C(value) __CONCAT(value, ULL) + +/*@}*/ + +#endif /* !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) */ + + +#endif /* _STDINT_H_ */ Property changes on: firmware/fuxusb/trunk/lib_c/stdint.h ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:keywords + Id Name: svn:eol-style + native Modified: firmware/fuxusb/trunk/src/config.h =================================================================== --- firmware/fuxusb/trunk/src/config.h 2008-05-14 13:34:46 UTC (rev 1145) +++ firmware/fuxusb/trunk/src/config.h 2008-05-14 13:47:30 UTC (rev 1146) @@ -17,12 +17,12 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id:$ */ +/* $Id$ */ #ifndef _CONFIG_H_ #define _CONFIG_H_ -#include "lib_c/stdint.h" +#include <stdint.h> #include "lib_mcu/compiler.h" #include "lib_mcu/reg_5131.h" #include "lib_mcu/ext_5131.h" Modified: firmware/fuxusb/trunk/src/global.h =================================================================== --- firmware/fuxusb/trunk/src/global.h 2008-05-14 13:34:46 UTC (rev 1145) +++ firmware/fuxusb/trunk/src/global.h 2008-05-14 13:47:30 UTC (rev 1146) @@ -1,7 +1,7 @@ #ifndef _GLOBAL_H_ #define _GLOBAL_H_ -#include "common\api.h" +#include "src\common\api.h" #include "common\defines.h" #define rf_reset_signal P0_1 Modified: firmware/fuxusb/trunk/src/i2c.h =================================================================== --- firmware/fuxusb/trunk/src/i2c.h 2008-05-14 13:34:46 UTC (rev 1145) +++ firmware/fuxusb/trunk/src/i2c.h 2008-05-14 13:47:30 UTC (rev 1146) @@ -17,12 +17,12 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id:$ */ +/* $Id$ */ #ifndef _I2C_H_ #define _I2C_H_ -#include "lib_c/stdint.h" +#include <stdint.h> #include "lib_mcu/twi/twi.h" #include "config.h" |