feat: add STM32 four-channel weighing firmware

This commit is contained in:
FinleyHsu
2026-07-28 11:01:55 +08:00
commit 1282b9b77e
205 changed files with 80376 additions and 0 deletions
@@ -0,0 +1,26 @@
/*************************** (C) COPYRIGHT 2017 Ping ****************************
* 文件名 usart2.h
* 描 述 :串口2驱动头文件
* 版 本 V1.0
* 作 者 XuZhongPing
* 日 期 2017/09/04
*********************************************************************************/
#ifndef __USART2_H
#define __USART2_H
#include "stm32f10x.h"
#include "stdio.h"
#define USART2_RECV_LEN 128 //最大接收缓存字节数
#define USART2_SEND_LEN 128 //最大发送缓存字节数
extern uint8_t USART2_RX_BUF[USART2_RECV_LEN];
extern uint8_t USART2_TX_BUF[USART2_SEND_LEN];
extern uint8_t USART2_RX_STA;
void USART2_Init(uint32_t bound);
void USART2_SendByteData(uint8_t bData);
void USART2_SendFrameData(uint8_t pDataBuf[], uint16_t len);
#endif
/******************** (C) COPYRIGHT 2017 Ping *****END OF FILE*******************/