move to ccs based on 39cc590260f6d69837dd16740b7b8612e8935592

This commit is contained in:
2025-11-17 17:02:53 +08:00
commit 8acb95d566
20 changed files with 1169 additions and 0 deletions

32
3rd/mt6701.h Normal file
View File

@@ -0,0 +1,32 @@
#ifndef MT6701_H
#define MT6701_H
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
#define PI 3.14159265359f
#define _2PI 6.28318530718f
#define I2C_TX_PACKET_SIZE (1)
/*
* Number of bytes to received from target.
* This example uses FIFO with polling, and the maximum FIFO size is 8.
* Refer to interrupt examples to handle larger packets
*/
#define I2C_RX_PACKET_SIZE (2)
void MT6701_iic_read_angel(void);
void MT6701_get_angle_degree(void);
float GetAngle(void);
float GetAngle_NoTrack(void);
float GetVelocity(void);
#ifdef __cplusplus
}
#endif
#endif /* MT6701_H */