pwm uart gipo i2c

This commit is contained in:
2025-11-12 10:32:45 +08:00
parent cd01dcf51e
commit 8908bf2332
13 changed files with 440 additions and 1 deletions

View File

@@ -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);
}