# rizacelik/stm32f411ceu6_inav_firmware architecture

> Architecture diagram of the GitHub repository rizacelik/stm32f411ceu6_inav_firmware, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rizacelik/stm32f411ceu6_inav_firmware
- Repository: https://github.com/rizacelik/stm32f411ceu6_inav_firmware

## Overview

This repository describes an STM32F411CE INAV flight-controller board and its target hardware configuration, rather than implementing the flight-control runtime. The documented use runs from powering the board and connecting sensors, receiver and GPS, through INAV firmware configuration, to motor/servo and peripheral outputs. The graph captures configured interfaces and timer assignments; it does not infer firmware execution or connections absent from the supplied source and README.

Main entry points: [`target.h`](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h) (STM32F411CE board), [`target.c`](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.c) (Timer channels)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_board["Board configuration"]
  node_fc["STM32F411CE board<br/>[target.h]"]
end

subgraph group_sensors["Sensors and storage"]
  node_spi2["SPI2 bus<br/>[target.h]"]
  node_imus["SPI IMUs<br/>[target.h]"]
  node_bmp["BMP280 barometer<br/>[target.h]"]
  node_osd["MAX7456 OSD<br/>[target.h]"]
  node_flash[("SPI flash logging<br/>[target.h]")]
end

subgraph group_connectivity["Input and connectivity"]
  node_i2c["I2C peripherals<br/>[target.h]"]
  node_uart["UART ports<br/>[target.h]"]
end

subgraph group_outputs["Outputs and monitoring"]
  node_adc["ADC inputs<br/>[target.h]"]
  node_timers["Timer channels<br/>[target.c]"]
  node_led["LED strip<br/>[target.h]"]
  node_beeper["Beeper<br/>[target.h]"]
end

node_user(("Board operator"))
node_inav["INAV firmware"]
node_receiver["Receiver and GPS"]
node_motors["Motors and servos"]

node_user -->|"powers at 5V"| node_fc
node_user -->|"flashes firmware"| node_inav
node_inav -.->|"configures board"| node_fc
node_fc -->|"configures"| node_spi2
node_spi2 -->|"connects"| node_imus
node_spi2 -->|"connects"| node_bmp
node_spi2 -->|"connects"| node_osd
node_spi2 -->|"connects"| node_flash
node_fc -->|"configures"| node_i2c
node_fc -->|"configures"| node_uart
node_receiver -->|"connects"| node_uart
node_fc -->|"configures"| node_adc
node_fc -->|"defines channels"| node_timers
node_timers -->|"drives outputs"| node_motors
node_fc -->|"configures"| node_led
node_fc -->|"configures"| node_beeper

click node_fc "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_spi2 "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_imus "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_bmp "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_osd "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_flash "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_i2c "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_uart "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_adc "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_timers "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.c"
click node_led "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"
click node_beeper "https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_fc toneBlue
class node_spi2,node_imus,node_bmp,node_osd,node_flash toneAmber
class node_i2c,node_uart toneMint
class node_adc,node_timers,node_led,node_beeper toneRose
class node_user,node_inav,node_receiver,node_motors toneIndigo
```

## Components

### Board configuration

- [STM32F411CE board](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`

### Sensors and storage

- [SPI2 bus](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`
- [SPI IMUs](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`
- [BMP280 barometer](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`
- [MAX7456 OSD](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`
- [SPI flash logging](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`

### Input and connectivity

- [I2C peripherals](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`
- [UART ports](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`

### Outputs and monitoring

- [ADC inputs](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`
- [Timer channels](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.c): `target.c`
- [LED strip](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`
- [Beeper](https://github.com/rizacelik/stm32f411ceu6_inav_firmware/blob/main/target.h): `target.h`

### Other components

- **Board operator**
- **INAV firmware**
- **Receiver and GPS**
- **Motors and servos**

## Connections

- Board operator → STM32F411CE board: powers at 5V (evidence: `README.md`)
- Board operator → INAV firmware: flashes firmware (evidence: `README.md`)
- INAV firmware → STM32F411CE board: configures board
- STM32F411CE board → SPI2 bus: configures (evidence: `target.h`)
- SPI2 bus → SPI IMUs: connects (evidence: `target.h`)
- SPI2 bus → BMP280 barometer: connects (evidence: `target.h`)
- SPI2 bus → MAX7456 OSD: connects (evidence: `target.h`)
- SPI2 bus → SPI flash logging: connects (evidence: `target.h`)
- STM32F411CE board → I2C peripherals: configures (evidence: `target.h`)
- STM32F411CE board → UART ports: configures (evidence: `target.h`)
- Receiver and GPS → UART ports: connects (evidence: `README.md`)
- STM32F411CE board → ADC inputs: configures (evidence: `target.h`)
- STM32F411CE board → Timer channels: defines channels (evidence: `target.c`)
- Timer channels → Motors and servos: drives outputs (evidence: `README.md`)
- STM32F411CE board → LED strip: configures (evidence: `target.h`)
- STM32F411CE board → Beeper: configures (evidence: `target.h`)
