diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-10-17 07:31:40 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-10-17 07:31:40 +0000 |
commit | a708e083e1cf6f6181bcd02baf9cc580f38b5397 (patch) | |
tree | 17ee42a1d3ec12fff765ec5c8a94b4b03f47f0c9 /os/hal/include | |
parent | b1586a7e3afed45889903b1096d8b03412768478 (diff) | |
download | ChibiOS-a708e083e1cf6f6181bcd02baf9cc580f38b5397.tar.gz ChibiOS-a708e083e1cf6f6181bcd02baf9cc580f38b5397.tar.bz2 ChibiOS-a708e083e1cf6f6181bcd02baf9cc580f38b5397.zip |
Improvements to the ICU driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7409 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/icu.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/os/hal/include/icu.h b/os/hal/include/icu.h index f07d4a76e..9d7a06220 100644 --- a/os/hal/include/icu.h +++ b/os/hal/include/icu.h @@ -93,18 +93,6 @@ typedef void (*icucallback_t)(ICUDriver *icup); } while (0)
/**
- * @brief Waits for a completed capture.
- *
- * @param[in] icup pointer to the @p ICUDriver object
- *
- * @iclass
- */
-#define icuWaitCaptureI(icup) do { \
- icu_lld_wait_capture(icup); \
- icup->state = ICU_ACTIVE; \
-} while (0)
-
-/**
* @brief Stops the input capture.
*
* @param[in] icup pointer to the @p ICUDriver object
@@ -125,7 +113,7 @@ typedef void (*icucallback_t)(ICUDriver *icup); *
* @iclass
*/
-#define icuEnableNotificationsI(icup) icu_enable_notifications(icup)
+#define icuEnableNotificationsI(icup) icu_lld_enable_notifications(icup)
/**
* @brief Disables notifications.
@@ -136,7 +124,20 @@ typedef void (*icucallback_t)(ICUDriver *icup); *
* @iclass
*/
-#define icuDisableNotificationsI(icup) icu_disable_notifications(icup)
+#define icuDisableNotificationsI(icup) icu_lld_disable_notifications(icup)
+
+/**
+ * @brief Check on notifications status.
+ *
+ * @param[in] icup pointer to the @p ICUDriver object
+ * @return The notifications status.
+ * @retval false if notifications are not enabled.
+ * @retval true if notifications are enabled.
+ *
+ * @notapi
+ */
+#define icuAreNotificationsEnabledX(icup) \
+ icu_lld_are_notifications_enabled(icup)
/**
* @brief Returns the width of the latest pulse.
|