From 327486282a2b787713cca0d552324de8052f7877 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Tue, 4 Apr 2017 10:16:57 -0700 Subject: [PATCH] device.h: remove deprecated device sync API Change-Id: I62ee2b296da2117fc7fc990c6d356dc8d3ac1146 Signed-off-by: Andrew Boie --- include/device.h | 50 +----------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/include/device.h b/include/device.h index c2ce45d2e72..c2b8b2577a4 100644 --- a/include/device.h +++ b/include/device.h @@ -8,6 +8,7 @@ #ifndef _DEVICE_H_ #define _DEVICE_H_ +#include /* for __deprecated */ #include @@ -456,55 +457,6 @@ int device_busy_check(struct device *chk_dev); * @} */ -/** - * Synchronous calls API - */ - -#include -#include - -/** - * Specific type for synchronizing calls among the 2 possible contexts - */ -typedef struct { - /** Nanokernel semaphore used for fiber context */ - struct k_sem f_sem; -} device_sync_call_t; - - -/** - * @brief Initialize the context-dependent synchronization data - * - * @param sync A pointer to a valid device_sync_call_t - */ -static inline void __deprecated device_sync_call_init(device_sync_call_t *sync) -{ - k_sem_init(&sync->f_sem, 0, UINT_MAX); -} - -/** - * @brief Wait for the isr to complete the synchronous call - * Note: It will simply wait on the internal semaphore. - * - * @param sync A pointer to a valid device_sync_call_t - */ -static inline void __deprecated device_sync_call_wait(device_sync_call_t *sync) -{ - k_sem_take(&sync->f_sem, K_FOREVER); -} - -/** - * @brief Signal the waiter about synchronization completion - * Note: It will simply release the internal semaphore - * - * @param sync A pointer to a valid device_sync_call_t - */ -static inline void __deprecated - device_sync_call_complete(device_sync_call_t *sync) -{ - k_sem_give(&sync->f_sem); -} - #ifdef __cplusplus } #endif