aboutsummaryrefslogtreecommitdiffstats
path: root/demos/MSP430-MSP430x1611-GCC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-13 15:40:57 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-08-13 15:40:57 +0000
commit5cee2c08d787d1b14c62d5595b72644a773fe443 (patch)
tree50032e24ab9522de3a828493a8a69681fab1f2ae /demos/MSP430-MSP430x1611-GCC
parent978e34eed2ed391f57b25e007b63f2938f8af0f6 (diff)
downloadChibiOS-5cee2c08d787d1b14c62d5595b72644a773fe443.tar.gz
ChibiOS-5cee2c08d787d1b14c62d5595b72644a773fe443.tar.bz2
ChibiOS-5cee2c08d787d1b14c62d5595b72644a773fe443.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3226 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/MSP430-MSP430x1611-GCC')
-rw-r--r--demos/MSP430-MSP430x1611-GCC/chconf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/chconf.h b/demos/MSP430-MSP430x1611-GCC/chconf.h
index 51b833cc2..058dd1cb3 100644
--- a/demos/MSP430-MSP430x1611-GCC/chconf.h
+++ b/demos/MSP430-MSP430x1611-GCC/chconf.h
@@ -483,6 +483,16 @@
#endif
/**
+ * @brief Context switch hook.
+ * @details This hook is invoked just before switching between threads.
+ */
+#if !defined(THREAD_CONTEXT_SWITCH_HOOK) || defined(__DOXYGEN__)
+#define THREAD_CONTEXT_SWITCH_HOOK(ntp, otp) { \
+ /* System halt code here.*/ \
+}
+#endif
+
+/**
* @brief Idle Loop hook.
* @details This hook is continuously invoked by the idle thread loop.
*/