usart.h 375 B

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