IRPyro Micro controller template only
Routines to enable the MCU to use the USART and the I2C
Todo List
Global i2c_Read (uint8_t DeviceAddr, uint8_t Command, uint8_t *pBuffer, uint16_t len)
Use of GOTO on the I2C read and write functions in order to detect what causes the function to return. Needs to be addressed. Multiple returns reduce complexity but is difficult to trace. This functions could be re-factored since there are several waiting loops, required for the flags in use.
Global i2c_Write (uint8_t DeviceAddr, uint8_t Command, uint8_t *pBuffer, uint8_t len)
Use of GOTO on the I2C read and write functions in order to detect what causes the function to return. Needs to be addressed. Multiple returns reduce complexity but is difficult to trace. This functions could be re-factored since there are several waiting loops, required for the flags in use