summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorJeonghoon Park <jh1979.park@samsung.com>2019-08-26 17:29:00 +0900
committerJeonghoon Park <jh1979.park@samsung.com>2019-08-26 17:29:38 +0900
commit0b45430da216dc4265d783af260e67f6e29bd1b1 (patch)
treeb0f6f94d9b142c6cd4b0d534a7f1b0eca92a2312 /inc
parentc6e345f6d918eb75f4bdd9e8ce7cf50c3ea320c3 (diff)
downloadst-things-light-0b45430da216dc4265d783af260e67f6e29bd1b1.tar.gz
st-things-light-0b45430da216dc4265d783af260e67f6e29bd1b1.tar.bz2
st-things-light-0b45430da216dc4265d783af260e67f6e29bd1b1.zip
update interrupt handling logic
Change-Id: I338c7015fb6234b163fe2b73aa937c5beb196556
Diffstat (limited to 'inc')
-rwxr-xr-xinc/resource/resource_infrared_motion.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/inc/resource/resource_infrared_motion.h b/inc/resource/resource_infrared_motion.h
index 60565a7..115c634 100755
--- a/inc/resource/resource_infrared_motion.h
+++ b/inc/resource/resource_infrared_motion.h
@@ -17,21 +17,8 @@
#ifndef __RESOURCE_INFRARED_MOTION_H__
#define __RESOURCE_INFRARED_MOTION_H__
-typedef enum {
- MOTION_HANDLE_ERROR_NONE = 0, /**< Successful */
- MOTION_HANDLE_ERROR_NOT_OPEN,
- MOTION_HANDLE_ERROR_INVALID_PIN
-} resource_infrared_motion_handle_error_e;
-
typedef void (*resource_infrared_motion_interrupted_cb) (uint32_t motion_value, void *user_data);
-typedef struct resource_infrared_motion_interrupted_data_s {
- resource_infrared_motion_interrupted_cb interrupted_cb;
- void *interrupted_cb_user_data;
- uint32_t motion_value;
- int is_called_first_time;
-} resource_infrared_motion_interrupted_data;
-
/**
* @brief Reads value of gpio connected infrared motion sensor (HC-SR501)
* @param[in] pin_num The gpio pin number for the infrared motion sensor