# sudharshangodi-ghb/platform-zephyr architecture

> Architecture diagram of the GitHub repository sudharshangodi-ghb/platform-zephyr, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sudharshangodi-ghb/platform-zephyr
- Repository: https://github.com/sudharshangodi-ghb/platform-zephyr

## Overview

This repository is a set of Zephyr applications for the FRDM-MCXN236 board, including LED, RGB LED, silicon-temperature, and accelerometer examples. The user-facing workflow is to choose an application and run it on the board; the sampled core app demonstrates a GPIO LED blink. The other sample names are supported by the file tree, but their implementations and connections were not sampled, so their runtime relationships are omitted. The README documents board setup, not the behavior of each sample.

Main entry points: [`frdm-mcxn236/coreapp/src/main.c`](https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/coreapp/src/main.c) (Core LED blink)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Board applications"]
  node_coreapp["Core LED blink<br/>[main.c]"]
  node_led_sample["LED sample<br/>[main.c]"]
  node_rgb_sample["RGB LED sample<br/>[main.c]"]
  node_temp_sample["Silicon temperature<br/>[main.c]"]
  node_accel_sample["Accelerometer sample<br/>[main.c]"]
end

subgraph group_hardware["Hardware interface"]
  node_zephyr_gpio["Zephyr GPIO API"]
  node_board_led(("Board LED"))
end

node_coreapp -->|"configures and toggles"| node_zephyr_gpio
node_coreapp -->|"blinks"| node_board_led

click node_coreapp "https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/coreapp/src/main.c"
click node_led_sample "https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/sample/01_led/src/main.c"
click node_rgb_sample "https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/sample/02_rgb_led/src/main.c"
click node_temp_sample "https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/sample/03_silicon_temp/src/main.c"
click node_accel_sample "https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/sample/04_accelerometer/src/main.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_coreapp,node_led_sample,node_rgb_sample,node_temp_sample,node_accel_sample toneBlue
class node_zephyr_gpio,node_board_led toneAmber
```

## Components

### Board applications

- [Core LED blink](https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/coreapp/src/main.c): `frdm-mcxn236/coreapp/src/main.c`
- [LED sample](https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/sample/01_led/src/main.c): `frdm-mcxn236/sample/01_led/src/main.c`
- [RGB LED sample](https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/sample/02_rgb_led/src/main.c): `frdm-mcxn236/sample/02_rgb_led/src/main.c`
- [Silicon temperature](https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/sample/03_silicon_temp/src/main.c): `frdm-mcxn236/sample/03_silicon_temp/src/main.c`
- [Accelerometer sample](https://github.com/sudharshangodi-ghb/platform-zephyr/blob/main/frdm-mcxn236/sample/04_accelerometer/src/main.c): `frdm-mcxn236/sample/04_accelerometer/src/main.c`

### Hardware interface

- **Zephyr GPIO API**
- **Board LED**

## Connections

- Core LED blink → Zephyr GPIO API: configures and toggles (evidence: `frdm-mcxn236/coreapp/src/main.c`)
- Core LED blink → Board LED: blinks (evidence: `frdm-mcxn236/coreapp/src/main.c`)
