summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-12-29 09:36:16 +0000
committer[email protected] <[email protected]>2012-12-29 09:36:16 +0000
commit68fadd9edc61b9b62406961de28f54354f2bfea9 (patch)
treecee99e702ede8ca2451c5698fbe64c42ecc34963 /include
parentd573786d522a4c5316210bcef22a417ba40f92c8 (diff)
Add exception hook function.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2551 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include')
-rw-r--r--include/rthw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rthw.h b/include/rthw.h
index 4cf3d7e48d..30820a5c73 100644
--- a/include/rthw.h
+++ b/include/rthw.h
@@ -12,6 +12,7 @@
* 2006-03-18 Bernard the first version
* 2006-04-25 Bernard add rt_hw_context_switch_interrupt declaration
* 2006-09-24 Bernard add rt_hw_context_switch_to declaration
+ * 2012-12-29 Bernard add rt_hw_exception_install declaration
*/
#ifndef __RT_HW_H__
@@ -56,6 +57,11 @@ void rt_hw_console_output(const char *str);
void rt_hw_backtrace(rt_uint32_t *fp, rt_uint32_t thread_entry);
void rt_hw_show_memory(rt_uint32_t addr, rt_uint32_t size);
+/*
+ * exception interfaces
+ */
+void rt_hw_exception_install(void (*exception_handle)(void* context));
+
#ifdef __cplusplus
}
#endif