summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-09-28 16:02:28 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-09-28 16:43:24 +0200
commitb762488ef5cd1fe18b620dd960dcbab9587aefe9 (patch)
tree998181fe0d09fc801cb41960fa28247716d8288e
parent7f5ab84e38934c4bea245aff301edaf2780cffc7 (diff)
downloadrtems-b762488ef5cd1fe18b620dd960dcbab9587aefe9.tar.bz2
bsp/mpc55xx: Add e200z7 specific idle task
-rw-r--r--c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
index b4868200c4..e1b1405014 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
@@ -74,6 +74,19 @@ rtems_status_code bsp_register_i2c(void);
void bsp_restart(void *addr);
+#if MPC55XX_CHIP_TYPE / 10 == 567
+ static void *mpc55xx_idle_task(uintptr_t arg)
+ {
+ while (true) {
+ __asm__ volatile ("wait");
+ }
+
+ return NULL;
+ }
+
+ #define BSP_IDLE_TASK_BODY mpc55xx_idle_task
+#endif
+
#endif /* ASM */
#ifdef __cplusplus