Home | Projects | Notes > MCU Peripheral Drivers > USART Driver (stm32f407xx_usart_driver.h/.c)

USART Driver (stm32f407xx_usart_driver.h/.c)

 

SPI Driver API Requirements

SPIx Peripheral Configurable Items for User Applications

Exercise

  1. Create stm32f407xx_usart_driver.c and stm32f407xx_usart_driver.h

  2. Complete USART register definition structure and other macros (e.g., peripheral base addresses, device definition, clock enable, clock disable, etc.) in the MCU specific header file.

  3. Add USART register bit definition macros in the MCU specific header file.

  4. ADD USART configuration structure and USART handle structure in USART header file.

 

Code

stm32f407xx_usart_driver.h

Path: Project/Drivers/Inc/

 

stm32f407xx_usart_driver.c

Path: Project/Drivers/Src/