This repository contains GPIO, SPI, I2C and USART drivers for STM32F407xx microcontrollers. Drivers and examples were written in C programming language.
This repository contains two types of folders, identifiable using the following naming convention:
- folder that contains the GPIO, SPI, I2C and USART drivers, named
drivers
, - folder that contains the examples, named
src
,
Another folder, named Startup
, contains startup file of STM32f407vgtx that is created automatically by STM32CubeIDE.
In order to clone
the complete content of this folder use the command:
git clone [email protected]:redrussianarmy/stm32f407xx-drivers.git
or
git clone https://github.com/redrussianarmy/stm32f407xx-drivers.git
drivers folder contains:
- inc folder that contains device-specific header file and specified driver header files
- src folder that contains specified driver source files
src folder contains some examples of related drivers.
You only need to include the device-specific header file "stm32f407xx.h"
in your main.c file
- A standard C language compiler for the target MCU
- Optional: STM32CubeIDE
STM32CubeIDE was used to develop this project.
In case of using the supported STMicroelectronics discovery board the example file(.c) can run without applying any modifications (as is).
In order to do that, please follow the following steps:
- Simply open the project with STM32CubeIDE
- Open one of the example in src folder.
- Make sure that other examples are excluded from build.
- Build the project.
- You may run in the Target MCU or debug to examine working steps in detail
- Enjoy :-)