semaphore handling added to SPI interface
This commit is contained in:
parent
a974b010ab
commit
2d52ad85b4
2 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue