Skip to content

Source Layout

Val edited this page Nov 17, 2026 · 1 revision
OpenOSC/
├── VERSION                 firmware version
├── platformio.ini          build environments
├── config/boards/          board parameters (source of truth)
├── boards/                 generated board files for PlatformIO
├── ld/                     linker scripts (application, recovery)
├── scripts/                build hooks and packaging
├── include/openosc/        headers, same structure as src/
├── src/                    sources
└── vendor/                 third-party code (do not edit)

src/

Folder Contents
main.cpp, recovery/ Recovery: menu, update, backup, FAT check and repair, format
update/ Image validation, CRC, internal Flash programming (used by Recovery)
startup/ Vector table, startup, hand-off between images
platform/ Board init, clocks, power, input pins, interrupts, watchdog, stack guard
application/ The firmware's controller: keys, panels, actions per instrument, saving, Remote mode
instrument/ DataAccess: ownership of capture, meter and generator; polling
acquisition/ ADC clocking, capture, frames, Auto Setup, frequency counter
measurement/dmm/ Multimeter packet decoder, function and range control, HOLD modes, statistics
generator/ Waveform tables and outputs (ZT703S DAC/PWM, ZT706S module)
decode/ Protocol Decoders: settings, jobs, protocol state machines, CSV export
dsp/ Signal processing helpers
scpi/ SCPI parser, engine and command groups
usb/ USB device, descriptors, USBTMC/CDC instrument, mass storage (Recovery)
ui/ LVGL views, screens, components, editors (panels), fonts
settings/ Preferences and theme JSON, workspaces
storage/ External Flash driver, FAT, directories, atomic JSON files
calibration/ Oscilloscope zero, gain and interleave corrections
data/ CSV/RAW writers, units, number formatting
screenshot/ BMP writer, reader and viewer support
display/ Low-level display for Recovery
input/ Key gestures (press, hold, repeat)

include/openosc/board/

zt703s.hpp, zt706s.hpp (pins and features), current.hpp (selects the board from OPENOSC_BOARD) and generated/ (from config/boards/).

vendor/

Folder Component
hal, cmsis, usb Microcontroller HAL, CMSIS headers, USB device library
cmsis_dsp DSP library (FFT)
fatfs FatFs file system
lvgl LVGL 9.6 graphics library
arduinojson ArduinoJson 6.21

Each component keeps its own license file.

Clone this wiki locally