semaphore handling added to SPI interface

This commit is contained in:
Gunar Schorcht 2018-01-05 18:39:01 +01:00
parent ffc8673ad1
commit 29735aa7c4
3 changed files with 21 additions and 6 deletions

View file

@ -177,11 +177,14 @@ void user_task_interrupt (void *pvParameters)
// get the source of the interrupt that reset *INTx* signals
#ifdef INT_DATA
lsm303d_get_int_data_source (sensor, &data_src);
#elif INT_THRESH
#endif
#ifdef INT_THRESH
lsm303d_get_int_m_thresh_source(sensor, &thresh_src);
#elif INT_EVENT
#endif
#ifdef INT_EVENT
lsm303d_get_int_event_source (sensor, &event_src, lsm303d_int_event1_gen);
#elif INT_CLICK
#endif
#ifdef INT_CLICK
lsm303d_get_int_click_source (sensor, &click_src);
#endif