diff options
author | Fabio Utzig <utzig@utzig.org> | 2016-04-04 23:37:20 -0300 |
---|---|---|
committer | Fabio Utzig <utzig@utzig.org> | 2016-04-04 23:37:20 -0300 |
commit | 99c3815a527585127b850f555078de4792ca7caf (patch) | |
tree | a36de2252ecdfc6e44946e935e64658b2532ba81 /testhal/NRF51/NRF51822/GPT/chconf.h | |
parent | 4c5a09e72722351d0139a64f3c9f476e38f95554 (diff) | |
download | ChibiOS-Contrib-99c3815a527585127b850f555078de4792ca7caf.tar.gz ChibiOS-Contrib-99c3815a527585127b850f555078de4792ca7caf.tar.bz2 ChibiOS-Contrib-99c3815a527585127b850f555078de4792ca7caf.zip |
Fix testhal demos (except for RNG)
Diffstat (limited to 'testhal/NRF51/NRF51822/GPT/chconf.h')
-rw-r--r-- | testhal/NRF51/NRF51822/GPT/chconf.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testhal/NRF51/NRF51822/GPT/chconf.h b/testhal/NRF51/NRF51822/GPT/chconf.h index 5b0630c..71b3bb4 100644 --- a/testhal/NRF51/NRF51822/GPT/chconf.h +++ b/testhal/NRF51/NRF51822/GPT/chconf.h @@ -28,6 +28,8 @@ #ifndef _CHCONF_H_
#define _CHCONF_H_
+#define _CHIBIOS_RT_CONF_
+
/*===========================================================================*/
/**
* @name System timers settings
@@ -445,6 +447,20 @@ }
/**
+ * @brief ISR enter hook.
+ */
+#define CH_CFG_IRQ_PROLOGUE_HOOK() { \
+ /* IRQ prologue code here.*/ \
+}
+
+/**
+ * @brief ISR exit hook.
+ */
+#define CH_CFG_IRQ_EPILOGUE_HOOK() { \
+ /* IRQ epilogue code here.*/ \
+}
+
+/**
* @brief Idle thread enter hook.
* @note This hook is invoked within a critical zone, no OS functions
* should be invoked from here.
@@ -488,6 +504,15 @@ /* System halt code here.*/ \
}
+/**
+ * @brief Trace hook.
+ * @details This hook is invoked each time a new record is written in the
+ * trace buffer.
+ */
+#define CH_CFG_TRACE_HOOK(tep) { \
+ /* Trace code here.*/ \
+}
+
/** @} */
/*===========================================================================*/
|