/* 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};//测试数据 /** * @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(); //数据获取 } } /** * @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 */ }