pwm uart gipo i2c
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "MT6701.h"
|
||||
#include "ti_msp_dl_config.h"
|
||||
|
||||
#include "uart_redircet.h"
|
||||
#include "stdio.h"
|
||||
volatile int16_t angle;
|
||||
volatile float angle_f;
|
||||
volatile float angle_f_rad;
|
||||
@@ -77,6 +78,7 @@ void MT6701_iic_read_angel(void)
|
||||
if(DL_I2C_getControllerStatus(I2C_1_INST) &
|
||||
DL_I2C_CONTROLLER_STATUS_ERROR)
|
||||
{
|
||||
//printf("i2c error \n");
|
||||
/* LED will remain high if there is an error */
|
||||
__BKPT(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user