# rk2105/project architecture

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

- Interactive diagram: https://gitdiagram.com/rk2105/project
- Repository: https://github.com/rk2105/project

## Overview

The repository contains two embedded products: ACEU_OBC firmware for a fin-control board and ARM_MINI firmware for an RTC with keypad/LCD interaction. ACEU_OBC’s documented loop initializes hardware, receives an EB90 ICD frame, samples ADCs, dispatches commands, controls the motor, and reads temperature. ARM_MINI initializes its RTC and user interface, displays time/date, and edits values from keypad input. ACEU_OBC application internals beyond the shown entry point are represented by their source files; their detailed internal calls were not sampled.

Main entry points: [`ACEU_OBC/main.c`](https://github.com/rk2105/project/blob/main/ACEU_OBC/main.c) (Firmware loop), [`ARM_MINI/main.c`](https://github.com/rk2105/project/blob/main/ARM_MINI/main.c) (Menu loop), [`ACEU_OBC/Application/Source/SystemInit.c`](https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c) (Board initialization), [`ARM_MINI/lcd.c`](https://github.com/rk2105/project/blob/main/ARM_MINI/lcd.c) (LCD display)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_obc["ACEU OBC"]
  node_obc_main["Firmware loop<br/>[main.c]"]
  node_obc_init["Board initialization<br/>[SystemInit.c]"]
  node_obc_icd_rx["ICD frame receive<br/>[SystemInit.c]"]
  node_obc_dispatch["ICD dispatch<br/>[SystemInit.c]"]
  node_obc_adc["ADC sampling<br/>[AdcProcess.c]"]
  node_obc_motor["Motor control<br/>[SystemInit.c]"]
  node_obc_temp["Temperature read<br/>[SystemInit.c]"]
  node_obc_status["Status responses<br/>[SystemInit.c]"]
end

subgraph group_obc_hw["Board Drivers"]
  node_obc_driverlib["Peripheral drivers"]
  node_obc_device["Device support<br/>[device.c]"]
end

subgraph group_mini["ARM Mini"]
  node_mini_main["Menu loop<br/>[main.c]"]
  node_mini_rtc["RTC and editing<br/>[rtc.c]"]
  node_mini_keypad["Keypad input<br/>[kpm.c]"]
  node_mini_lcd["LCD display<br/>[lcd.c]"]
  node_mini_delay["LCD timing<br/>[delay.c]"]
end

node_obc_operator(("Control station"))
node_mini_user(("Device user"))

node_obc_operator -.->|"sends frames"| node_obc_icd_rx
node_obc_main -->|"initializes"| node_obc_init
node_obc_main -->|"reports failure"| node_obc_status
node_obc_main -->|"receives frame"| node_obc_icd_rx
node_obc_main -->|"samples ADC"| node_obc_adc
node_obc_main -->|"dispatches command"| node_obc_dispatch
node_obc_main -->|"controls motor"| node_obc_motor
node_obc_main -->|"reads temperature"| node_obc_temp
node_obc_main -->|"sets LED"| node_obc_driverlib
node_obc_init -.->|"configures device"| node_obc_device
node_obc_init -.->|"configures peripherals"| node_obc_driverlib
node_obc_icd_rx -.->|"sends responses"| node_obc_operator
node_mini_user -.->|"uses controls"| node_mini_main
node_mini_main -->|"initializes and edits"| node_mini_rtc
node_mini_main -->|"initializes and scans"| node_mini_keypad
node_mini_main -->|"initializes display"| node_mini_lcd
node_mini_rtc -->|"renders values"| node_mini_lcd
node_mini_lcd -.->|"uses timing"| node_mini_delay

click node_obc_main "https://github.com/rk2105/project/blob/main/ACEU_OBC/main.c"
click node_obc_init "https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c"
click node_obc_icd_rx "https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c"
click node_obc_dispatch "https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c"
click node_obc_adc "https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/AdcProcess.c"
click node_obc_motor "https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c"
click node_obc_temp "https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c"
click node_obc_status "https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c"
click node_obc_driverlib "https://github.com/rk2105/project/tree/main/ACEU_OBC/Drivers/Source"
click node_obc_device "https://github.com/rk2105/project/blob/main/ACEU_OBC/Drivers/device.c"
click node_mini_main "https://github.com/rk2105/project/blob/main/ARM_MINI/main.c"
click node_mini_rtc "https://github.com/rk2105/project/blob/main/ARM_MINI/rtc.c"
click node_mini_keypad "https://github.com/rk2105/project/blob/main/ARM_MINI/kpm.c"
click node_mini_lcd "https://github.com/rk2105/project/blob/main/ARM_MINI/lcd.c"
click node_mini_delay "https://github.com/rk2105/project/blob/main/ARM_MINI/delay.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_obc_main,node_obc_init,node_obc_icd_rx,node_obc_dispatch,node_obc_adc,node_obc_motor,node_obc_temp,node_obc_status,node_mini_user toneBlue
class node_obc_driverlib,node_obc_device toneAmber
class node_mini_main,node_mini_rtc,node_mini_keypad,node_mini_lcd,node_mini_delay toneMint
class node_obc_operator toneIndigo
```

## Components

### ACEU OBC

- [Firmware loop](https://github.com/rk2105/project/blob/main/ACEU_OBC/main.c): `ACEU_OBC/main.c`
- [Board initialization](https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c): `ACEU_OBC/Application/Source/SystemInit.c`
- [ICD frame receive](https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c): `ACEU_OBC/Application/Source/SystemInit.c`
- [ICD dispatch](https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c): `ACEU_OBC/Application/Source/SystemInit.c`
- [ADC sampling](https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/AdcProcess.c): `ACEU_OBC/Application/Source/AdcProcess.c`
- [Motor control](https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c): `ACEU_OBC/Application/Source/SystemInit.c`
- [Temperature read](https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c): `ACEU_OBC/Application/Source/SystemInit.c`
- [Status responses](https://github.com/rk2105/project/blob/main/ACEU_OBC/Application/Source/SystemInit.c): `ACEU_OBC/Application/Source/SystemInit.c`

### Board Drivers

- [Peripheral drivers](https://github.com/rk2105/project/tree/main/ACEU_OBC/Drivers/Source): `ACEU_OBC/Drivers/Source`
- [Device support](https://github.com/rk2105/project/blob/main/ACEU_OBC/Drivers/device.c): `ACEU_OBC/Drivers/device.c`

### ARM Mini

- [Menu loop](https://github.com/rk2105/project/blob/main/ARM_MINI/main.c): `ARM_MINI/main.c`
- [RTC and editing](https://github.com/rk2105/project/blob/main/ARM_MINI/rtc.c): `ARM_MINI/rtc.c`
- [Keypad input](https://github.com/rk2105/project/blob/main/ARM_MINI/kpm.c): `ARM_MINI/kpm.c`
- [LCD display](https://github.com/rk2105/project/blob/main/ARM_MINI/lcd.c): `ARM_MINI/lcd.c`
- [LCD timing](https://github.com/rk2105/project/blob/main/ARM_MINI/delay.c): `ARM_MINI/delay.c`

### Other components

- **Control station**
- **Device user**

## Connections

- Control station → ICD frame receive: sends frames
- Firmware loop → Board initialization: initializes (evidence: `ACEU_OBC/main.c`)
- Firmware loop → Status responses: reports failure (evidence: `ACEU_OBC/main.c`)
- Firmware loop → ICD frame receive: receives frame (evidence: `ACEU_OBC/main.c`)
- Firmware loop → ADC sampling: samples ADC (evidence: `ACEU_OBC/main.c`)
- Firmware loop → ICD dispatch: dispatches command (evidence: `ACEU_OBC/main.c`)
- Firmware loop → Motor control: controls motor (evidence: `ACEU_OBC/main.c`)
- Firmware loop → Temperature read: reads temperature (evidence: `ACEU_OBC/main.c`)
- Firmware loop → Peripheral drivers: sets LED (evidence: `ACEU_OBC/main.c`)
- Board initialization → Device support: configures device
- Board initialization → Peripheral drivers: configures peripherals
- ICD frame receive → Control station: sends responses
- Device user → Menu loop: uses controls
- Menu loop → RTC and editing: initializes and edits (evidence: `ARM_MINI/main.c`)
- Menu loop → Keypad input: initializes and scans (evidence: `ARM_MINI/main.c`)
- Menu loop → LCD display: initializes display (evidence: `ARM_MINI/main.c`)
- RTC and editing → LCD display: renders values (evidence: `ARM_MINI/rtc.c`)
- LCD display → LCD timing: uses timing
