#include #include "My_type.h" #include "main.h" #include "sx1276-LoRa.h" void UART1_init(void) { UART1_CR2=0; UART1_SR=0; UART1_CR1=0; UART1_CR3=0; UART1_BRR2 = 0x00; // 设置波特率19200 UART1_BRR1 = 0x1A; // 8M/2400 = 0x1A0 UART1_CR2=0x00;// } void TIM1_init(void) {