From 1f05b803edfb45940c544aa01ae3af3693b1a4cd Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 10 Mar 2012 11:56:43 +0000 Subject: Overflow handling in ICU driver. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4033 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/icu.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'os/hal/include') 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); \ +} /** @} */ /*===========================================================================*/ -- cgit v1.2.3