feat: 换用更简单的通信帧格式

This commit is contained in:
bmy
2024-03-04 15:05:40 +08:00
parent f1c0b63d21
commit 7e7b22c992
20 changed files with 149 additions and 620 deletions

View File

@@ -38,7 +38,7 @@
#include "by_imu.h"
#include "by_buzzer.h"
#include "by_rt_button.h"
#include "by_tiny_frame_parse.h"
#include "by_frame.h"
#include "jj_motion.h"
#include "jj_blueteeth.h"
@@ -112,7 +112,7 @@ void UART4_IRQHandler(void)
if (USART_GetITStatus(UART4, USART_IT_RXNE) != RESET) {
uint8_t data_s = 0;
uart_query_byte(UART_4, &data_s);
by_tiny_frame_parse_uart_handle(data_s);
by_frame_parse_uart_handle(data_s);
USART_ClearITPendingBit(UART4, USART_IT_RXNE);
}
}
@@ -314,7 +314,7 @@ void TIM5_IRQHandler(void)
void TIM6_IRQHandler(void)
{
if (TIM_GetITStatus(TIM6, TIM_IT_Update) != RESET) {
//ICM_getEulerianAngles();
// ICM_getEulerianAngles();
imu660ra_get_gyro();
TIM_ClearITPendingBit(TIM6, TIM_IT_Update);
}