#ifndef __USART_H #define __USART_H #include "stm32f4xx.h" void USART_GPIO_Config(u32 RCC_APBnPeriphn, u8 GPIO_AF_USARTn,GPIO_TypeDef *GPIOx, u16 PIN, u8 GPIO_PinSource); void USART_NVIC_Config(s8 NVIC_IRQChannel, u8 pre, u8 sub); void USART_MOD_Config(void (*ClockCmd)(uint32_t, FunctionalState), u32 RCC_APBnPeriphn, USART_TypeDef* USARTn, u32 baudrate); #endif