aboutsummaryrefslogtreecommitdiffstats
path: root/demos/NRF51/RT-WVSHARE_BLE400/chconf.h
diff options
context:
space:
mode:
authorFabio Utzig <utzig@utzig.org>2016-04-10 21:11:14 -0300
committerFabio Utzig <utzig@utzig.org>2016-04-10 21:11:14 -0300
commit16dd3d3f35dd0d6326b12a23d3e7cc54b2f1ecd5 (patch)
tree9c9f9c7aafc53cf39a3ad94f0472caef05aa0086 /demos/NRF51/RT-WVSHARE_BLE400/chconf.h
parentef40620f3c013f785fbd9a9043ed53a370e699ac (diff)
parentb72393fff0b6449d839b8a8464c199b7e9146159 (diff)
downloadChibiOS-Contrib-16dd3d3f35dd0d6326b12a23d3e7cc54b2f1ecd5.tar.gz
ChibiOS-Contrib-16dd3d3f35dd0d6326b12a23d3e7cc54b2f1ecd5.tar.bz2
ChibiOS-Contrib-16dd3d3f35dd0d6326b12a23d3e7cc54b2f1ecd5.zip
Merge pull request #48 from utzig/fix-nrf51-port
Fix nrf51 port
Diffstat (limited to 'demos/NRF51/RT-WVSHARE_BLE400/chconf.h')
-rw-r--r--demos/NRF51/RT-WVSHARE_BLE400/chconf.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/demos/NRF51/RT-WVSHARE_BLE400/chconf.h b/demos/NRF51/RT-WVSHARE_BLE400/chconf.h
index fc9a52b..a753ec9 100644
--- a/demos/NRF51/RT-WVSHARE_BLE400/chconf.h
+++ b/demos/NRF51/RT-WVSHARE_BLE400/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.*/ \
+}
+
/** @} */
/*===========================================================================*/