Commit graph

71 commits

Author SHA1 Message Date
Ryan Turner
0b22725172 gfx: apply clang-format to graphics.c and graphics.h
Add openrtx/src/core/graphics.c and openrtx/include/core/graphics.h
in scripts/clang_format.sh and apply the formatter. No functional
changes.

Co-authored-by: GitHub Copilot <copilot@github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-07-25 21:11:18 +02:00
Silvano Seva
5a50737689 targets: linux: platform.c: apply clang-format
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-07-25 20:25:10 +02:00
Silvano Seva
0793f0c213 targets: linux: emulator: apply clang-format
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-07-25 20:25:10 +02:00
Silvano Seva
0d3d2a37ce drivers: audio_linux: apply clang-format
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-07-25 20:25:10 +02:00
Silvano Seva
9194801231 interfaces: audio.h: apply clang-format
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-07-25 20:25:10 +02:00
Silvano Seva
2588968e6f mcu: stm32: apply clang-format to i2c_stm32 driver
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-06-11 22:55:42 +02:00
Silvano Seva
885e032e41 clang-format: turn file list into an exclusion list
Make clang-format cheking all the files in the repository by default.
The shell script now contains a list of files and folders excluded from
the check, to be progressively reduced when these files are updated to
the new coding style.

Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-06-11 22:55:42 +02:00
Silvano Seva
1d185e26ff NVM: posix_file: apply clang-format
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-05-16 16:50:04 +02:00
Silvano Seva
dc82283bd0 drivers: SKY72310: apply clang-format
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-04-28 19:55:47 +02:00
Joshua Murphy
0c1cb127b7 core: voice prompts: format to new coding style
Signed-off-by: Joshua Murphy <hello@joshmurphy.ca>
2026-04-22 20:45:39 +02:00
Joshua Murphy
d3d7d6c666 core: state: format to new coding style
Signed-off-by: Joshua Murphy <hello@joshmurphy.ca>
2026-04-22 20:45:39 +02:00
Joshua Murphy
df9700a62f core: input: format to new coding style
Signed-off-by: Joshua Murphy <hello@joshmurphy.ca>
2026-04-22 20:45:39 +02:00
Jetse Verschuren
7be721f312 core: dsp: add decimator implementation
Co-authored-by: Ryan Turner <ryan@turnrye.com>
2026-04-20 20:21:52 +02:00
Ryan Turner
711c653fc2 style: apply clang-format to hwconfig files
Co-authored-by: opencode <noreply@opencode.ai>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-04-20 20:04:29 +02:00
Ryan Turner
b3635edbb6 core: audio_codec: apply clang-format
Co-authored-by: opencode <noreply@opencode.ai>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-04-20 20:04:29 +02:00
Ryan Turner
3139f71e26 tests: add unit test for PacketFrame
Co-authored-by: GitHub Copilot <175728472+github-copilot[bot]@users.noreply.github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-03-23 22:43:07 +01:00
Ryan Turner
a6323d041e m17: add PacketFrame class
Co-authored-by: GitHub Copilot <175728472+github-copilot[bot]@users.noreply.github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-03-23 22:08:01 +01:00
Morgan Diepart
d0af737f6b drivers: nvm: add driver for stm32 internal flash 2026-03-22 21:29:39 +01:00
Ryan Turner
e63214e7c0 M17: remove M17 name from namespaced classes
M17 protocol code is already namespaced in M17, so it's redundant to name every class M17*. This change removes the leading M17 from all of the namespaced things.

Co-authored-by: GitHub Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-03-21 10:05:33 +01:00
Ryan Turner
f850fcd55b ui: show received meta text
When there is a received m17 meta text, show it on the UI.

Co-authored-by: Wojciech Kaczmarski <w.kaczmarski@teletra.pl>
Co-authored-by: Jim Ancona <jim@anconafamily.com>
Co-authored-by: Rick Schnicker <crs026@yahoo.com>
Co-authored-by: GitHub Copilot <noreply@github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-03-13 21:25:34 +01:00
Ryan Turner
84c2e9fbdc protocols: M17: add metadata class and reassembly
Add classes oriented around handling metadata in the M17 protocol.
Create a class for reassembling text blocks from metadata in order to
assemble a multi-frame metadata text message.

Co-authored-by: Wojciech Kaczmarski <w.kaczmarski@teletra.pl>
Co-authored-by: Jim Ancona <jim@anconafamily.com>
Co-authored-by: Rick Schnicker <crs026@yahoo.com>
Co-authored-by: GitHub Copilot <noreply@github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-03-13 21:25:34 +01:00
Ryan Tolboom
17b240d687 core: crc: improve M17 CRC and move to core
The CRC function used by M17 now utilizes a 4 bit lookup table and has been
moved out of the `protocols/m17` to `core/crc.c`.

Signed-off-by: Ryan Tolboom <Ryan.Tolboom@njit.edu>
2026-03-06 16:59:17 +01:00
Ryan Turner
d27cc927b9 test: unit: clean up non-unit test dead code
The unit test directory had a number of manual linux platform tests that aren't really unit tests. They aren't written with assertions and have no documented use. This change deletes these from the testing suite. In the future they could be added back in a different place, or automated tests in the form of true unit or integration tests could be added. But this clarifies that all suites in the unit test folder are actually automated unit tests, and only one unexectued test remains (related to code that is planned to be reintroduced in the future).

Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-03-04 08:10:40 +01:00
Ryan Turner
2f18cdcc0c test: unit: add gcovr test coverage
Add a script to run gcovr; update contributing guide to explain usage; integrate
with vscode presents; add execution to ci.

To use this, execute `scripts/coverage.sh`. This builds with coverage
instrumentation, runs the test suite, and produces:
 * HTML report: `build_coverage/coverage/index.html` -- open in a browser to see
   per-file line-by-line coverage highlighting
 * MD report: `build_coverage/coverage/coverage.md` -- human-readable summary of
   test coverage which gets attached to the GitHub actions build
 * Cobertura XML: `build/coverage/cobertura.xml` -- machine-readable format used
   by CI; this gets archived today with the build, but no other use is in place
   yet

In the future another tool could be used to track coverage over time, or we
could institute minimum coverage requirements and have a GH actions
automatically open a comment when the coverage is not met, for instance.

Co-authored-by: GitHub Copilot <copilot@github.com> Signed-off-by: Ryan Turner
<ryan@turnrye.com>
2026-03-04 08:10:40 +01:00
Ryan Turner
7ff4873280 test: unit: port and enable UI standby check test
From the old UI check standby test, update it to be Catch2-based.
Register the test in meson.build and add it to clang_format.sh

Co-authored-by: GitHub Copilot <copilot@github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-03-04 08:10:40 +01:00
Ryan Turner
a7dfd83e31 test: unit: rename C test files to C++
Rename cps.c and convert_minmea_coord.c to .cpp so they can be built
with the C++ compiler required for Catch2. File content is unchanged at
this point - the Catch2 port follows in the next commit. Also update the
source references in meson.build and the file list in clang_format.sh.

Co-authored-by: GitHub Copilot <copilot@github.com>
Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-03-04 08:10:40 +01:00
Ryan Turner
b0493aedae test: format all unit tests
Signed-off-by: Ryan Turner <ryan@turnrye.com
2026-03-04 08:10:40 +01:00
Silvano Seva
22174f0f67 nvmem: move device access API to a separate file
Moved all the helper function for low-level NVM device access to a
dedicated header file.

TG-796

Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-03-03 18:34:07 +01:00
Silvano Seva
5bce279f03 nvmem: update sources to new coding style
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-03-03 18:34:07 +01:00
Morgan Diepart
f070a477a6 build: rename "build_arm" file to "build_cm4"
In file cross_cm7.txt, the target cpu was wrongly identified as being
Cortex M4. This does not affect compilation.
Also, file cross_arm.txt was renamed cross_cm4.txt and folder build_arm
was renamed to build_cm4. References to this were also updated.
2026-02-14 16:00:51 +01:00
Silvano Seva
821b6cb288 audio: apply clang-format to file_source
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-02-14 15:32:52 +01:00
Ryan Turner
95fdcd5fe2 copyright-and-license: adopt SPDX-compliant header
This change removes the old copyright header from project sources and
replaces it with a new simplified SPDX-compliant header. Note that files
that were missing the header but reasonably understood to be licensed
according to the root license were not corrected.

Signed-off-by: Ryan Turner <ryan@turnrye.com>
2026-01-14 20:10:07 +01:00
Silvano Seva
5e1250c0a8 scripts: remove unused MD-380 scripts
Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2026-01-14 20:10:07 +01:00
Ryan Turner
edbe038329 test: unit: add test for M17 Callsign class 2025-11-17 22:04:27 +01:00
Ryan Turner
fdbe3f2583 M17: add Callsign class
Added class representing M17 callsign objects. Objects can be
constructed both from strings and base-40 encoded values and allow
conversion to any of the other representation. The class implements the
comparison operator to allow easy check for callsign match.
2025-11-17 22:04:27 +01:00
Ryan Turner
5fe5cb287b M17: FrameDecoder: style formatting pass 2025-11-03 20:56:24 +01:00
Silvano Seva
6db558e89c core: dsp: refactor DC block filter implementation
New DC block filter implementation using fixed-point math and guaranteeing
zero DC component on the output signal.

Signed-off-by: Silvano Seva <silseva@fastwebnet.it>
2025-09-28 14:12:20 +02:00
Peter Buchegger
024a18588d scripts: removed bin2sgl binaries 2025-09-14 14:21:19 +02:00
Peter Buchegger
7f3991b8f1 scripts: add bin2sgl python script
Converted C program to python script, output binary is identical
2025-09-14 14:14:17 +02:00
Silvano Seva
12dc81aef2 test: platform: codec2_encode_test: reformat code to new coding style 2025-09-12 16:33:15 +02:00
Silvano Seva
b2e289e6fd test: platform: mic_test: reformat code to new coding style 2025-09-12 16:23:34 +02:00
Ryan Turner
74e89450b7 clang-format: add lint job and update run script
Update clang-format script to only run on files that are passing the
formatter, that way the clang-format script is useable by CI and
contributors.
2025-09-12 15:46:08 +02:00
Silvano Seva
03d1ae5546 Updated year in copyright headers 2025-04-04 21:15:39 +02:00
Alain Carlucci
dfb329e10f CS7000: added wrap script and build target 2025-03-26 19:58:14 +01:00
Silvano Seva
4a76d67184 Build target for Connect Systems CS7000 2025-03-16 10:13:00 +01:00
Jim Ancona
ec56cad014 meson.build: changes to support building on MacOS 2025-03-01 20:00:40 +01:00
Silvano Seva
b7ccbd5eb6 OpenOCD script for STM32F4 MCU 2024-10-12 14:52:43 +02:00
Silvano Seva
87314db133 Small program for codec2 3200 encoding and decoding 2024-03-02 10:07:12 +01:00
Niccolò Izzo
b4c8fca767
Implemented uf2 image wrapping for T-TWR Plus
T-TWR Plus target now produces images in UF2 format.
This format is compatible with bootloaders such as tinyuf2, and future
releases of the hardware will come pre-flashed with tinyuf2, thus
flashing them will not requires any other dependency than the uf2 file
itself.

TG-553
2023-10-18 11:27:43 +02:00
Ryan Turner
ec57e74bc6 feat(ui): add tooling to generate symbols, add GPS status icon and macro latch icon to the macro menu
Ref https://github.com/OpenRTX/OpenRTX/issues/161
2023-08-24 09:32:01 +02:00