Initial public release.
This commit is contained in:
parent
7b169e8116
commit
dac4af8d25
255 changed files with 68595 additions and 2 deletions
33
2020TPCAppNoDFU.cydsn/COMM/COMM_I2C_Bus.c
Normal file
33
2020TPCAppNoDFU.cydsn/COMM/COMM_I2C_Bus.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/** \file
|
||||
* \brief This file implements the I²C bus.
|
||||
*
|
||||
* See COMM_I2C_Bus.h for a detailed description of the functionality implemented by this code.
|
||||
*/
|
||||
|
||||
/* Include Files */
|
||||
#include "KTag.h"
|
||||
|
||||
/* Local Definitions and Constants */
|
||||
|
||||
/* Public Variables */
|
||||
|
||||
SemaphoreHandle_t COMM_I2C_Bus_Mutex = NULL;
|
||||
|
||||
/* Private Variables */
|
||||
|
||||
/* Private Function Prototypes */
|
||||
|
||||
/* Public Functions */
|
||||
|
||||
//! Initializes the I²C bus.
|
||||
/*!
|
||||
*
|
||||
*/
|
||||
void COMM_I2C_Init(void)
|
||||
{
|
||||
COMM_I2C_Bus_Mutex = xSemaphoreCreateMutex();
|
||||
I2C_Start();
|
||||
}
|
||||
|
||||
|
||||
/* Private Functions */
|
Loading…
Add table
Add a link
Reference in a new issue