spi_sem.c File Reference
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
Include dependency graph for spi_sem.c:

Functions

void spi1_lock (void)
 Lock SPI access. More...
 
void spi1_unlock (void)
 Unlock SPI access. More...
 

Function Documentation

void spi1_lock ( void  )

Lock SPI access.

SPI Access should be locked in multi-tasking environment if you are using SPI BUS.

Warning
Only use this API if you are running FreeRTOS and scheduler has started.
void spi1_unlock ( void  )

Unlock SPI access.