aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/RC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-25 08:55:40 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-25 08:55:40 +0000
commit88bea4b8c200fad936c063718289250ce49cda61 (patch)
tree0c7cd93c45b07d4f9964f5c519afbf31b6c1fb34 /os/ports/RC
parent62f4b7f471a4b1037468d382f927c5061e5fa9ed (diff)
downloadChibiOS-88bea4b8c200fad936c063718289250ce49cda61.tar.gz
ChibiOS-88bea4b8c200fad936c063718289250ce49cda61.tar.bz2
ChibiOS-88bea4b8c200fad936c063718289250ce49cda61.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2038 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/RC')
-rw-r--r--os/ports/RC/STM8/chcore.c4
-rw-r--r--os/ports/RC/STM8/chcore.h23
-rw-r--r--os/ports/RC/STM8/chtypes.h10
-rw-r--r--os/ports/RC/STM8/port.dox20
4 files changed, 27 insertions, 30 deletions
diff --git a/os/ports/RC/STM8/chcore.c b/os/ports/RC/STM8/chcore.c
index 6aaa182af..c09e9f864 100644
--- a/os/ports/RC/STM8/chcore.c
+++ b/os/ports/RC/STM8/chcore.c
@@ -19,9 +19,9 @@
/**
* @file RC/STM8/chcore.c
- * @brief STM8 architecture port code.
+ * @brief STM8 (Raisonance) architecture port code.
*
- * @addtogroup STM8_CORE
+ * @addtogroup STM8_RAISONANCE_CORE
* @{
*/
#pragma SRC("tmp.asm")
diff --git a/os/ports/RC/STM8/chcore.h b/os/ports/RC/STM8/chcore.h
index bc6d43971..6c2848ec3 100644
--- a/os/ports/RC/STM8/chcore.h
+++ b/os/ports/RC/STM8/chcore.h
@@ -19,9 +19,9 @@
/**
* @file RC/STM8/chcore.h
- * @brief STM8 architecture port macros and structures.
+ * @brief STM8 (Raisonance) architecture port macros and structures.
*
- * @addtogroup STM8_CORE
+ * @addtogroup STM8_RAISONANCE_CORE
* @{
*/
@@ -53,7 +53,7 @@
/**
* @brief Name of the implemented architecture.
*/
-#define CH_ARCHITECTURE_NAME "STM8"
+#define CH_ARCHITECTURE_NAME "STM8"
/*===========================================================================*/
/* Port implementation part. */
@@ -155,19 +155,16 @@ struct stm8_startctx {
* by @p INT_REQUIRED_STACK.
*/
#ifndef IDLE_THREAD_STACK_SIZE
-#define IDLE_THREAD_STACK_SIZE 0
+#define IDLE_THREAD_STACK_SIZE 0
#endif
/**
* @brief Per-thread stack overhead for interrupts servicing.
- * @details This constant is used in the calculation of the correct working
- * area size.
- * This value can be zero on those architecture where there is a
- * separate interrupt stack and the stack space between @p intctx and
- * @p extctx is known to be zero.
+ * @details This is a safe value, you may trim it down after reading the
+ * right size in the map file.
*/
#ifndef INT_REQUIRED_STACK
-#define INT_REQUIRED_STACK 32
+#define INT_REQUIRED_STACK 48
#endif
/**
@@ -212,7 +209,7 @@ struct stm8_startctx {
* @note @p id can be a function name or a vector number depending on the
* port implementation.
*/
-#define PORT_IRQ_HANDLER(id) void irq##id(void) interrupt id
+#define PORT_IRQ_HANDLER(id) void vector##id(void) interrupt id
/**
* @brief Port-related initialization code.
@@ -289,9 +286,9 @@ struct stm8_startctx {
#ifdef __cplusplus
extern "C" {
#endif
- void port_halt(void);
void _port_switch(Thread *otp);
void _port_thread_start(void);
+ void port_halt(void);
#ifdef __cplusplus
}
#endif
@@ -318,7 +315,7 @@ typedef struct {
#endif
} ReadyList;
-extern page0 ReadyList rlist;
+page0 extern ReadyList rlist;
#endif /* _CHCORE_H_ */
diff --git a/os/ports/RC/STM8/chtypes.h b/os/ports/RC/STM8/chtypes.h
index fd3370563..4f2241b1f 100644
--- a/os/ports/RC/STM8/chtypes.h
+++ b/os/ports/RC/STM8/chtypes.h
@@ -18,10 +18,10 @@
*/
/**
- * @file STM8/chtypes.h
- * @brief STM8 port system types.
+ * @file RC/STM8/chtypes.h
+ * @brief STM8 (Raisonance) port system types.
*
- * @addtogroup STM8_CORE
+ * @addtogroup STM8_RAISONANCE_CORE
* @{
*/
@@ -94,7 +94,7 @@ typedef uint16_t systime_t;
/**
* @brief Counter, recommended fastest signed.
*/
-typedef int16_t cnt_t;
+typedef int8_t cnt_t;
/**
* @brief Inline function modifier.
@@ -103,7 +103,7 @@ typedef int16_t cnt_t;
/**
* @brief ROM constant modifier.
- * @note Uses the custom "code" keyword in this port.
+ * @note Uses the "const" keyword in this port.
*/
#define ROMCONST code
diff --git a/os/ports/RC/STM8/port.dox b/os/ports/RC/STM8/port.dox
index 66f88c427..2f6d55236 100644
--- a/os/ports/RC/STM8/port.dox
+++ b/os/ports/RC/STM8/port.dox
@@ -18,10 +18,10 @@
*/
/**
- * @defgroup STM8 STM8
+ * @defgroup STM8_RAISONANCE STM8
* @details STM8 port for the Raisonance C compiler.
*
- * @section STM8_STATES Mapping of the System States in the STM8 port
+ * @section STM8_RAISONANCE_STATES Mapping of the System States in the STM8 port
* The ChibiOS/RT logical @ref system_states are mapped as follow in the STM8
* port:
* - <b>Init</b>. This state is represented by the startup code and the
@@ -44,7 +44,7 @@
* maskable interrupt sources that can be associated to this state.
* - <b>Halted</b>. Implemented as an infinite loop with interrupts disabled.
* .
- * @section STM8_NOTES The STM8 port notes
+ * @section STM8_RAISONANCE_NOTES The STM8 port notes
* - The STM8 does not have a dedicated interrupt stack, make sure to reserve
* enough stack space for interrupts in each thread stack. This can be done
* by modifying the @p INT_REQUIRED_STACK macro into
@@ -61,7 +61,7 @@
*/
/**
- * @defgroup STM8_CONF Configuration Options
+ * @defgroup STM8_RAISONANCE_CONF Configuration Options
* @brief STM8 Configuration Options.
* @details The STM8 port allows some architecture-specific configurations
* settings that can be specified externally, as example on the compiler
@@ -72,15 +72,15 @@
* thread so be careful in order to not waste precious RAM space.<br>
* The default value is set into <b>./os/ports/RC/STM8/chcore.h</b>.
* .
- * @ingroup STM8
+ * @ingroup STM8_RAISONANCE
*/
/**
- * @defgroup STM8_CORE Core Port Implementation
+ * @defgroup STM8_RAISONANCE_CORE Core Port Implementation
* @brief STM8 specific port code, structures and macros.
*
- * @ingroup STM8
- * @file STM8/chtypes.h Port types.
- * @file STM8/chcore.h Port related structures and macros.
- * @file STM8/chcore.c Port related code.
+ * @ingroup STM8_RAISONANCE
+ * @file RC/STM8/chtypes.h Port types.
+ * @file RC/STM8/chcore.h Port related structures and macros.
+ * @file RC/STM8/chcore.c Port related code.
*/