GeBalanceBot/GeBalanceBot_Firmware v1.0 .../DRV/bsp_usart.h

15 lines
318 B
C
Raw Normal View History

2024-01-18 01:55:04 +08:00
#ifndef __USART_H
#define __USART_H
#include "stm32f10x.h"
#include <stdio.h>
void USART1_Init(u32 bound);
void NVIC_Configuration(void);
int fputc(int ch, FILE *f);
int fgetc(FILE *f);
void USART1_Send(unsigned char *tx_buf, int len);
void USART1_Receive(unsigned char *rx_buf, int len);
#endif /* __USART1_H */