diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-03-10 11:56:43 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-03-10 11:56:43 +0000 |
commit | 1f05b803edfb45940c544aa01ae3af3693b1a4cd (patch) | |
tree | 76823dd701e8e8609ae4f83f7ea9bdc9e5609a6a /os/hal/include | |
parent | 696e7202dca8e59cb3a38bfdb190a1e095da70cd (diff) | |
download | ChibiOS-1f05b803edfb45940c544aa01ae3af3693b1a4cd.tar.gz ChibiOS-1f05b803edfb45940c544aa01ae3af3693b1a4cd.tar.bz2 ChibiOS-1f05b803edfb45940c544aa01ae3af3693b1a4cd.zip |
Overflow handling in ICU driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4033 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/icu.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/os/hal/include/icu.h b/os/hal/include/icu.h index 99cfc4e3c..15a9b2380 100644 --- a/os/hal/include/icu.h +++ b/os/hal/include/icu.h @@ -157,6 +157,17 @@ typedef void (*icucallback_t)(ICUDriver *icup); if (previous_state != ICU_WAITING) \
(icup)->config->period_cb(icup); \
}
+
+/**
+ * @brief Common ISR code, ICU timer overflow event.
+ *
+ * @param[in] icup pointer to the @p ICUDriver object
+ *
+ * @notapi
+ */
+#define _icu_isr_invoke_overflow_cb(icup) { \
+ (icup)->config->overflow_cb(icup); \
+}
/** @} */
/*===========================================================================*/
|