E015.D.011-FXLS90230/Src/main.c

47 lines
1000 B
C
Raw Permalink Normal View History

2025-04-24 11:37:10 +08:00
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "system.h"
/* Private includes ----------------------------------------------------------*/
unsigned char test[5] ={0,1,2,3,4};
unsigned char wdata[512] = {0};
unsigned char Vibration_wdata[512] = {0};//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/**
* @brief The application entry point.
* @retval int
*/
int main(void)
{
uint16_t adcValueTest;
uint8_t i;
System_Init(); //
delay_ms(5);
UART_SendByte(0x3A);
delay_ms(5);
UART3_SendByte(0xA5);
while (1)
{
AgreementService();
Uart3data_Processing();
Get_Data_Process(); //<2F><><EFBFBD>ݻ<EFBFBD>ȡ
}
}
/**
* @brief This function is executed in case of error occurrence.
* @retval None
*/
void _Error_Handler(char *file, int line)
{
/* USER CODE BEGIN Error_Handler_Debug */
/* User can add his own implementation to report the HAL error return state */
while(1)
{
UART_SendString("Error\r\n");
}
/* USER CODE END Error_Handler_Debug */
}