aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/RC/STM8/chcore.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/ports/RC/STM8/chcore.h')
-rw-r--r--os/ports/RC/STM8/chcore.h23
1 files changed, 10 insertions, 13 deletions
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_ */