diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-05-26 10:15:33 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-05-26 10:15:33 +0000 |
commit | 9ffa6324d43fc1e8fd5333a7d8bc517df5e1da42 (patch) | |
tree | d116275944383967725db68e580c0dd929b885f0 /os/ports/RC | |
parent | 1a9115dff31fb841a19bfc204ac6054e0f3b7a36 (diff) | |
download | ChibiOS-9ffa6324d43fc1e8fd5333a7d8bc517df5e1da42.tar.gz ChibiOS-9ffa6324d43fc1e8fd5333a7d8bc517df5e1da42.tar.bz2 ChibiOS-9ffa6324d43fc1e8fd5333a7d8bc517df5e1da42.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1958 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/RC')
-rw-r--r-- | os/ports/RC/STM8/chcore.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/os/ports/RC/STM8/chcore.h b/os/ports/RC/STM8/chcore.h index 54a30584f..6fa112346 100644 --- a/os/ports/RC/STM8/chcore.h +++ b/os/ports/RC/STM8/chcore.h @@ -118,15 +118,15 @@ struct stm8_startctx { * @details This code usually setup the context switching frame represented
* by an @p intctx structure.
*/
-#define SETUP_CONTEXT(workspace, wsize, pf, arg) { \
- struct stm8_startctx *scp; \
- scp = (struct stm8_startctx *)((uint8_t *)workspace + wsize - \
- sizeof(struct stm8_startctx)); \
- scp->ts = _port_thread_start; \
- scp->arg = arg; \
- scp->pc = (stm8func_t)pf; \
- scp->ret = (stm8func_t)chThdExit; \
- tp->p_ctx.sp = (struct intctx *)scp; \
+#define SETUP_CONTEXT(workspace, wsize, pf, arg) { \
+ struct stm8_startctx *scp; \
+ scp = (struct stm8_startctx *)((uint8_t *)workspace + wsize - \
+ sizeof(struct stm8_startctx)); \
+ scp->ts = _port_thread_start; \
+ scp->arg = arg; \
+ scp->pc = (stm8func_t)pf; \
+ scp->ret = (stm8func_t)chThdExit; \
+ tp->p_ctx.sp = (struct intctx *)scp; \
}
/**
@@ -159,9 +159,9 @@ struct stm8_startctx { /**
* @brief Computes the thread working area global size.
*/
-#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
- (sizeof(struct intctx) - 1) + \
- (sizeof(struct extctx) - 1) + \
+#define THD_WA_SIZE(n) STACK_ALIGN(sizeof(Thread) + \
+ (sizeof(struct intctx) - 1) + \
+ (sizeof(struct extctx) - 1) + \
(n) + (INT_REQUIRED_STACK))
/**
@@ -183,9 +183,9 @@ struct stm8_startctx { * @details This macro must be inserted at the end of all IRQ handlers
* enabled to invoke system APIs.
*/
-#define PORT_IRQ_EPILOGUE() { \
- if (chSchIsRescRequiredExI()) \
- chSchDoRescheduleI(); \
+#define PORT_IRQ_EPILOGUE() { \
+ if (chSchIsRescRequiredExI()) \
+ chSchDoRescheduleI(); \
}
/**
|