From 75792b3d6af243e043e66b1b2f7199229d430ef8 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 21 Apr 2010 14:11:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1882 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/RC/STM8/chtypes.h | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'os/ports/RC/STM8') diff --git a/os/ports/RC/STM8/chtypes.h b/os/ports/RC/STM8/chtypes.h index d2245b9c0..fd3370563 100644 --- a/os/ports/RC/STM8/chtypes.h +++ b/os/ports/RC/STM8/chtypes.h @@ -18,14 +18,10 @@ */ /** - * @file templates/chtypes.h - * @brief System types template. - * @details The types defined in this file may change depending on the target - * architecture. You may also try to optimize the size of the various - * types in order to privilege size or performance, be careful in - * doing so. + * @file STM8/chtypes.h + * @brief STM8 port system types. * - * @addtogroup types + * @addtogroup STM8_CORE * @{ */ @@ -40,15 +36,15 @@ //#include //#endif -typedef unsigned char uint8_t; -typedef signed char int8_t; -typedef unsigned int uint16_t; -typedef signed int int16_t; -typedef unsigned long uint32_t; -typedef signed long int32_t; -typedef uint8_t uint_fast8_t; -typedef uint16_t uint_fast16_t; -typedef uint32_t uint_fast32_t; +typedef unsigned char uint8_t; /**< C99-style 8 bits unsigned. */ +typedef signed char int8_t; /**< C99-style 8 bits signed. */ +typedef unsigned int uint16_t; /**< C99-style 16 bits unsigned. */ +typedef signed int int16_t; /**< C99-style 16 bits signed. */ +typedef unsigned long uint32_t; /**< C99-style 32 bits unsigned. */ +typedef signed long int32_t; /**< C99-style 32 bits signed. */ +typedef uint8_t uint_fast8_t; /**< C99-style 8 bits unsigned. */ +typedef uint16_t uint_fast16_t; /**< C99-style 16 bits unsigned. */ +typedef uint32_t uint_fast32_t; /**< C99-style 32 bits unsigned. */ /** * @brief Boolean, recommended the fastest signed. @@ -105,18 +101,27 @@ typedef int16_t cnt_t; */ #define INLINE inline +/** + * @brief ROM constant modifier. + * @note Uses the custom "code" keyword in this port. + */ +#define ROMCONST code + /** * @brief Packed structure modifier (within). + * @note Empty in this port. */ #define PACK_STRUCT_STRUCT /** * @brief Packed structure modifier (before). + * @note Empty in this port. */ #define PACK_STRUCT_BEGIN /** * @brief Packed structure modifier (after). + * @note Empty in this port. */ #define PACK_STRUCT_END -- cgit v1.2.3