Niccolò Izzo
c276fc5a51
ttwrplus: moved all the SA8x8 code in a dedicated translation unit.
2023-09-20 21:08:35 +02:00
Niccolò Izzo
d935532fc4
ttwrplus: enable GPS
...
GPS was enabled using UART1 and Zephyr message queues.
UI is a bit crushed on the small 128x64 screen but hardware works as expected.
TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo
eeb05bcc0f
ttwrplus: fix unstable baseband startup
...
A proper baseband reset is now issued at each startup. Now OpenRTX check
for SA868 responsiveness before proceeding with radio initialization,
eliminating unstable behaviour at boot.
TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo
dc84908fbc
ttwrplus: enable TURBO mode on SA868S
...
Enabled AT+TURBO command on SA868 that switches the baud rate of the
serial communication from 9600 to 115200 to get a more responsive
baseband. Bumped up the required baseband firmware version to
v1.1.0.r20.
TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo
82218aabce
ttwrplus: enable macro menu
...
Modified keyboard mapping to enable macro menu, interface is still
broken as the T-TWR Plus is missing a keyboard.
Now the volume down key, mapped as the MONI button can be also used to
set the squelch level.
TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo
4c035bbf16
ttwrplus: enable Tx capability
...
Enabled Tx capability on T-TWR Plus.
Since Tx requires the SA8x8 to disable the Rx stage, we check that at
least firmware v.1.1.0.r14 is present on the baseband, otherwise we
don't initialize the radio.
TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo
4df315473f
ttwrplus: add RGB LED support
...
Implemented WS2812C support with Zephyr driver.
Hooked up the RGB control to the existing RED and GREEN LED support.
TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo
c60f580396
ttwrplus: add support for SA868
...
Add support for initializing SA868 and querying its firmware version,
created a new instance of the AT1846S class that leverages the SA8x8
serial connection as an i2c implementation.
Rx works! In the sense that the RSSI bar behaves as expected, still no
audio.
This commit was contributed by edgetriggered.
TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo
df853c8527
ttwrplus: add support for keys using Zephyr bindings
...
Zephyr already provides button support based on gpios. We are mapping
Zephyr keycodes to OpenRTX therefore future targets will only need to
configure their devicetrees to have button support.
Rotary encoder readout leverages the hardware pulse counter. PTT in
this device is also bound to KEY_ESC, that matched the behaviour
observed in many commercial radios.
TG-553
2023-09-20 21:08:35 +02:00
Silvano Seva
67f6d56168
Display driver for ttwrplus
2023-09-20 21:08:35 +02:00
Silvano Seva
ebc5910015
Renamed "bcd2bin" utility to "bcdToBin" to avoid conflicting with Zephyr includes
2023-09-20 21:08:35 +02:00
Silvano Seva
5ea94ee1af
Improved management of FM audio volume on MD-UV3x0.
...
Fix #160 .
2023-09-08 16:14:11 +02:00
Silvano Seva
8dc1cba1f7
Removed sources of old audio stream drivers, updated stub audio driver
2023-08-30 18:04:25 +02:00
Silvano Seva
cd936ea216
Audio devices table for linux and GDx targets
2023-08-30 18:04:25 +02:00
Silvano Seva
344aa46da7
Audio devices table for MDx
2023-08-30 18:04:25 +02:00
Silvano Seva
2b1d3236d3
Audio devices table for Module17
2023-08-30 18:04:25 +02:00
Silvano Seva
f56771734f
Audio device driver for STM32F4xx ADC peripheral
2023-08-30 18:04:25 +02:00
Silvano Seva
5aed3e3316
Audio device driver for STM32F4xx PWM-based 8-bit DAC emulation
2023-08-30 18:04:25 +02:00
Silvano Seva
efb5f22750
Audio device driver for STM32F4xx DAC peripheral
2023-08-30 18:04:24 +02:00
Silvano Seva
1011dd1081
Moved audio_stream.h from interfaces to core headers
2023-08-30 18:04:24 +02:00
Silvano Seva
4920921862
MD-UV3x0: fixed bug causing no FM rx after tx end. Fix #171
...
Thanks to turnrye and tarxvf for debugging and testing this.
2023-08-23 09:54:36 +02:00
k5jae
c1a9db22b7
Made Brightness setting optional based on HW capabilities
2023-08-16 20:46:25 +02:00
Silvano Seva
4cd1fdfcf3
Moved gpio.h to peripherals
2023-07-21 19:27:14 +02:00
Silvano Seva
28122a3bf3
Moved gps.h to peripherals
2023-07-21 08:32:26 +02:00
Silvano Seva
b335aeb22c
Adding folder with stub drivers for the OpenRTX interface APIs.
...
Stub drivers provide a safe default implementation of the OpenRTX interface
APIs and can be used both as a starting point to implement the actual drivers
and to allow compiling binary images without needing to provide an actual
implementation first.
2023-07-18 23:08:49 +02:00
Silvano Seva
65dde770e7
Changed return type of cps_readBankData() from "int32_t" to "int".
...
Made the return type of cps_readBankData() consistent with the one of
the other CPS API functions.
2023-07-18 23:04:31 +02:00
Silvano Seva
a5b925e76f
Small code cleanup in MD-UV3x0 HR_C6000 driver, temporary workaround to fix #129
2023-07-14 18:12:31 +02:00
Silvano Seva
8019b29947
Moved the setBacklightLevel() API function from platform.h to display.h
2023-07-14 12:26:47 +02:00
Silvano Seva
163a3df607
Refactored MDx backlight driver
2023-07-14 12:26:47 +02:00
Silvano Seva
313e9615a6
Removed platform_getCalibrationData() function because of limited usefulness.
...
Given that each radio driver loads its calibration data when initializing
and that the radio driver is strongly platform-specific, there is no strong
need for an intermediate redirection layer through the platform API.
2023-07-14 12:26:39 +02:00
Silvano Seva
694181df92
Module17: implemented detection of hardware version
2023-06-14 21:50:12 +02:00
Silvano Seva
1afd868d64
Renamed "lcd_type" field of hardare info struct to "hw_version"
2023-06-14 21:30:52 +02:00
Silvano Seva
e93666a515
Implemented mic gain setting based on UI for Module 17
2023-05-29 22:12:40 +02:00
Mathis Schmieder
89aedef3ae
Implemented non-volatile memory for settings on Module 17
2023-05-29 22:12:40 +02:00
Silvano Seva
2b7fc6e150
Implemented control of Module 17 MCP4551 digital wipers
2023-05-29 22:12:40 +02:00
Silvano Seva
bd8585c45d
Fixed SDL-based display driver giving errors when compiled in BW pixel mode
2023-05-29 22:12:40 +02:00
Silvano Seva
a89a7523cb
Updated year in copyright headers
2023-02-08 16:33:02 +01:00
Silvano Seva
0692bea269
Partial fix for speaker pop when a voiceprompt begins
2022-10-31 08:41:31 +01:00
Silvano Seva
4411e0f3e8
Implemented audio path management API in GDx and Mod17 audio drivers, removed old audio management API
2022-10-28 09:47:47 +02:00
Silvano Seva
21481072e7
Moved audio management in M17 opmode handler to audio path system
2022-10-28 09:47:47 +02:00
Silvano Seva
ebc7be39ab
Implemented audio path management API in MDx audio driver
2022-10-28 09:47:47 +02:00
Silvano Seva
3c65f8834a
Added to radio driver interface two functions to enable and disable AF output towards the speaker
2022-10-28 09:47:47 +02:00
Silvano Seva
714a0dd331
Implemented audio path management API in linux audio driver
2022-10-28 09:47:47 +02:00
Silvano Seva
26048b90d1
Bugfix and refactoring of linux output stream driver
2022-10-28 08:30:46 +02:00
Niccolò Izzo
adbd1f070d
Fixed bug in circular buffer management inside linux output stream driver, added unit test for circular buffer mode.
...
TG-220
2022-10-28 08:30:46 +02:00
Niccolò Izzo
58c1c3bbd6
Implemented circular buffer mode in linux output stream driver.
2022-10-28 08:30:46 +02:00
Niccolò Izzo
081b19e52c
Implemented output audio stream driver for linux.
...
Implement outputStream backend on linux using Pulseaudio simple API.
TG-250
2022-10-28 08:30:46 +02:00
Silvano Seva
3ab36f3738
Fixed bug in MD3x0 radio driver causing underdeviation of M17 signal
2022-08-28 10:13:22 +02:00
Silvano Seva
e2137eae23
Implemented CRC of persistent data (settings and VFO state) in MDx devices
2022-08-11 17:02:04 +02:00
Silvano Seva
57349cba80
Changed allocation of display framebuffers from dynamic to static. Reorganised code in some of the display drivers.
2022-08-10 12:26:04 +02:00