# themindmodules/stm32f411ceu6---hal-projects architecture

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

- Interactive diagram: https://gitdiagram.com/themindmodules/stm32f411ceu6---hal-projects
- Repository: https://github.com/themindmodules/stm32f411ceu6---hal-projects

## Overview

The tree contains three independent STM32F411 firmware examples: ADC values rendered on an LCD, MAX31865/PT100 monitoring over USB CDC, and ADC reporting over USB CDC. Each follows a board-specific main loop; the display example adds a graphics/display stack, while the USB examples expose readings to a host. The README is empty, and several source excerpts omit loop details, so links below are limited to relationships visible in excerpts or the source index; unsampled implementation details are not inferred.

Main entry points: [`STM32F14_Display_ADC_VALUES/Core/Src/main.c`](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/main.c) (ADC display loop), [`STM32F14_Display_ADC_VALUES/Core/Src/GUI_Paint.c`](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/GUI_Paint.c) (Paint graphics), [`STM32F14_Display_ADC_VALUES/Core/Src/LCD_1in69.c`](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/LCD_1in69.c) (LCD 1.69 driver), [`STM32f4_adc_usbcdc/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c`](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c) (USB device core)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_display["LCD ADC Demo"]
  node_display_main["ADC display loop<br/>[main.c]"]
  node_display_hw["Display hardware config<br/>[DEV_Config.h]"]
  node_paint["Paint graphics<br/>[GUI_Paint.c]"]
  node_fonts["Font assets<br/>[font16.c]"]
  node_images["Image assets<br/>[image.c]"]
  node_lcd["LCD 1.69 driver<br/>[LCD_1in69.c]"]
end

subgraph group_sensor["RTD Monitor"]
  node_rtd_main["RTD monitor loop<br/>[main.c]"]
  node_max31865["MAX31865 driver<br/>[max31865.c]"]
end

subgraph group_usb["ADC USB CDC"]
  node_adc_main["ADC USB loop<br/>[main.c]"]
end

subgraph group_usb_stack["USB Device Stack"]
  node_rtd_usb["RTD CDC interface<br/>[usbd_cdc_if.c]"]
  node_adc_usb["ADC CDC interface<br/>[usbd_cdc_if.c]"]
  node_usb_init["USB device setup<br/>[usb_device.c]"]
  node_usb_core["USB device core<br/>[usbd_core.c]"]
  node_cdc_class["CDC class<br/>[usbd_cdc.c]"]
  node_usb_board["USB board support<br/>[usbd_conf.c]"]
end

node_analog_input(("Analog input"))
node_screen["LCD panel"]
node_rtd_input(("PT100 probe"))
node_host(("Serial monitor host"))
node_usb_host(("USB serial host"))

node_analog_input -.->|"provides signal"| node_display_main
node_display_main -->|"draws text"| node_paint
node_display_main -->|"runs display test"| node_lcd
node_paint -->|"uses hardware API"| node_display_hw
node_paint -->|"uses fonts"| node_fonts
node_display_main -->|"references fonts"| node_fonts
node_display_main -->|"references images"| node_images
node_lcd -->|"uses hardware API"| node_display_hw
node_lcd -.->|"drives display"| node_screen
node_rtd_input -.->|"provides resistance"| node_max31865
node_rtd_main -->|"reads RTD"| node_max31865
node_rtd_main -->|"reports readings"| node_rtd_usb
node_rtd_usb -.->|"sends CDC data"| node_host
node_adc_main -->|"initializes USB"| node_usb_init
node_adc_main -->|"reports readings"| node_adc_usb
node_usb_init -.->|"starts device stack"| node_usb_core
node_usb_core -.->|"uses CDC class"| node_cdc_class
node_usb_board -->|"implements low-level calls"| node_usb_core
node_adc_usb -.->|"sends CDC data"| node_usb_host

click node_display_main "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/main.c"
click node_display_hw "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Inc/DEV_Config.h"
click node_paint "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/GUI_Paint.c"
click node_fonts "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/font16.c"
click node_images "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/image.c"
click node_lcd "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/LCD_1in69.c"
click node_rtd_main "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f411_MAX31865_cdc_monitoring/Core/Src/main.c"
click node_max31865 "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f411_MAX31865_cdc_monitoring/Core/Src/max31865.c"
click node_rtd_usb "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f411_MAX31865_cdc_monitoring/USB_DEVICE/App/usbd_cdc_if.c"
click node_adc_main "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/Core/Src/main.c"
click node_adc_usb "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/USB_DEVICE/App/usbd_cdc_if.c"
click node_usb_init "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/USB_DEVICE/App/usb_device.c"
click node_usb_core "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c"
click node_cdc_class "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c"
click node_usb_board "https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/USB_DEVICE/Target/usbd_conf.c"

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_display_main,node_display_hw,node_paint,node_fonts,node_images,node_lcd toneBlue
class node_rtd_main,node_max31865 toneAmber
class node_adc_main toneMint
class node_rtd_usb,node_adc_usb,node_usb_init,node_usb_core,node_cdc_class,node_usb_board toneRose
class node_analog_input,node_screen,node_rtd_input,node_host,node_usb_host toneIndigo
```

## Components

### LCD ADC Demo

- [ADC display loop](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/main.c): `STM32F14_Display_ADC_VALUES/Core/Src/main.c`
- [Display hardware config](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Inc/DEV_Config.h): `STM32F14_Display_ADC_VALUES/Core/Inc/DEV_Config.h`
- [Paint graphics](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/GUI_Paint.c): `STM32F14_Display_ADC_VALUES/Core/Src/GUI_Paint.c`
- [Font assets](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/font16.c): `STM32F14_Display_ADC_VALUES/Core/Src/font16.c`
- [Image assets](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/image.c): `STM32F14_Display_ADC_VALUES/Core/Src/image.c`
- [LCD 1.69 driver](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32F14_Display_ADC_VALUES/Core/Src/LCD_1in69.c): `STM32F14_Display_ADC_VALUES/Core/Src/LCD_1in69.c`

### RTD Monitor

- [RTD monitor loop](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f411_MAX31865_cdc_monitoring/Core/Src/main.c): `STM32f411_MAX31865_cdc_monitoring/Core/Src/main.c`
- [MAX31865 driver](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f411_MAX31865_cdc_monitoring/Core/Src/max31865.c): `STM32f411_MAX31865_cdc_monitoring/Core/Src/max31865.c`

### ADC USB CDC

- [ADC USB loop](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/Core/Src/main.c): `STM32f4_adc_usbcdc/Core/Src/main.c`

### USB Device Stack

- [RTD CDC interface](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f411_MAX31865_cdc_monitoring/USB_DEVICE/App/usbd_cdc_if.c): `STM32f411_MAX31865_cdc_monitoring/USB_DEVICE/App/usbd_cdc_if.c`
- [ADC CDC interface](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/USB_DEVICE/App/usbd_cdc_if.c): `STM32f4_adc_usbcdc/USB_DEVICE/App/usbd_cdc_if.c`
- [USB device setup](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/USB_DEVICE/App/usb_device.c): `STM32f4_adc_usbcdc/USB_DEVICE/App/usb_device.c`
- [USB device core](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c): `STM32f4_adc_usbcdc/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c`
- [CDC class](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c): `STM32f4_adc_usbcdc/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c`
- [USB board support](https://github.com/themindmodules/stm32f411ceu6---hal-projects/blob/main/STM32f4_adc_usbcdc/USB_DEVICE/Target/usbd_conf.c): `STM32f4_adc_usbcdc/USB_DEVICE/Target/usbd_conf.c`

### Other components

- **Analog input**
- **LCD panel**
- **PT100 probe**
- **Serial monitor host**
- **USB serial host**

## Connections

- Analog input → ADC display loop: provides signal
- ADC display loop → Paint graphics: draws text (evidence: `STM32F14_Display_ADC_VALUES/Core/Src/main.c`)
- ADC display loop → LCD 1.69 driver: runs display test (evidence: `STM32F14_Display_ADC_VALUES/Core/Src/main.c`)
- Paint graphics → Display hardware config: uses hardware API
- Paint graphics → Font assets: uses fonts
- ADC display loop → Font assets: references fonts (evidence: `STM32F14_Display_ADC_VALUES/Core/Src/main.c`)
- ADC display loop → Image assets: references images (evidence: `STM32F14_Display_ADC_VALUES/Core/Src/main.c`)
- LCD 1.69 driver → Display hardware config: uses hardware API
- LCD 1.69 driver → LCD panel: drives display
- PT100 probe → MAX31865 driver: provides resistance
- RTD monitor loop → MAX31865 driver: reads RTD (evidence: `STM32f411_MAX31865_cdc_monitoring/Core/Src/main.c`)
- RTD monitor loop → RTD CDC interface: reports readings (evidence: `STM32f411_MAX31865_cdc_monitoring/Core/Src/main.c`)
- RTD CDC interface → Serial monitor host: sends CDC data
- ADC USB loop → USB device setup: initializes USB (evidence: `STM32f4_adc_usbcdc/Core/Src/main.c`)
- ADC USB loop → ADC CDC interface: reports readings (evidence: `STM32f4_adc_usbcdc/Core/Src/main.c`)
- USB device setup → USB device core: starts device stack
- USB device core → CDC class: uses CDC class
- USB board support → USB device core: implements low-level calls (evidence: `STM32f4_adc_usbcdc/USB_DEVICE/Target/usbd_conf.c`)
- ADC CDC interface → USB serial host: sends CDC data
