semaphore handling added to SPI interface

This commit is contained in:
Gunar Schorcht 2018-01-05 18:35:31 +01:00
parent a974b010ab
commit 2d52ad85b4
2 changed files with 7 additions and 5 deletions

View file

@ -153,9 +153,11 @@ void user_task_interrupt (void *pvParameters)
// get the source of the interrupt and reset *INTx* signals
#ifdef INT_DATA
lis3dh_get_int_data_source (sensor, &data_src);
#elif INT_EVENT
#endif
#ifdef INT_EVENT
lis3dh_get_int_event_source (sensor, &event_src, lis3dh_int_event1_gen);
#elif INT_CLICK
#endif
#ifdef INT_CLICK
lis3dh_get_int_click_source (sensor, &click_src);
#endif

View file

@ -68,9 +68,9 @@
// platform specific definitions
#define spi_semaphore_init()
#define spi_semaphore_take()
#define spi_semaphore_give()
#define spi_semaphore_init(d)
#define spi_semaphore_take(d)
#define spi_semaphore_give(d)
// platform specific SPI functions