Derecho
02bcec0bd4
Fix compilation warnings during linux build
2024-02-11 18:06:15 +01:00
Silvano Seva
d119e7d1b2
Moved pixel framebuffer out of display drivers into graphics layer
...
Reorganized code for pixel framebuffer in order to have it instantiated once
and for all the possible display drivers. Dropped the display_getFrameBuffer()
function.
2024-02-06 19:19:47 +01:00
Silvano Seva
731054a131
Dropped display_renderingInProgress() function from display API
...
Removed display_renderingInProgress() function from display interface as it
has never been used so far.
2024-02-06 19:19:47 +01:00
Silvano Seva
d8c0ab1c44
Dropped support for 20kHz bandwidth
...
Dropped support for 20kHz bandwith in rtx code and radio drivers. This option
is supported only by MDx radios and so far is not being used at all.
2024-02-06 19:19:47 +01:00
Silvano Seva
1791e70eef
Using newlib-specific sniprintf in place of snprintf
...
Using the newlib's printing functions without floating point support in order
to reduce the overall binary size. This allows to free up around 15kB of space
in the .text section.
2024-02-06 19:19:44 +01:00
Silvano Seva
44385b3b25
Using signed 32-bit data type for RSSI instead of floating points
...
Switched to int32_t for RSSI representation to allow running the code also
on devices with limited resources. Defined a new ad-hoc type to still keep
the possibility of using floating points on more capable devices.
2024-02-01 11:07:20 +01:00
Silvano Seva
963f402f1b
Graphics: using uint8_t instead of float for squelch and volume levels
...
Modified type of drawSmeter() and drawSmeterLevel() input parameters from
float to uint8_t.
2024-02-01 11:07:20 +01:00
Silvano Seva
49c99acf85
Utility function to strip leading zeroes from numbers in decimal notation
2024-02-01 11:07:20 +01:00
Silvano Seva
7b0ff04a2d
Graphics: removed 18pt and 24pt fonts
...
Removing 18pt and 24pt fonts from graphics layer since currently are unused
and take up flash space. On MD-380, removal freed up 12'928 bytes in the
.text section.
2024-02-01 11:07:20 +01:00
Silvano Seva
cb7b605251
Removed use of floating points when printing/announcing CTCSS tone frequency
2024-02-01 11:07:20 +01:00
Silvano Seva
5b3929ef44
Moved from float to uint32_t for TX power, substituted dBm with mW in CPS channel struct
...
General code optimization allowing to reduce the overall binary size, especially
for devices without hardware floating point support. On the MD-380 (which has the
FPU) the .text size has been reduced of 4'928 bytes.
2024-02-01 11:07:20 +01:00
Silvano Seva
24c4a25b2d
Made "static" all the variables local to each translation unit
2024-02-01 11:07:20 +01:00
Silvano Seva
8bc867beae
Using Kconfig-style #defines for GPS, RTC and knob type description
2024-02-01 11:07:20 +01:00
Silvano Seva
cc27cc28a4
Using Kconfig-style #defines for battery type description.
2024-02-01 11:07:20 +01:00
Silvano Seva
0f4290cdfe
Using Kconfig-style #defines for display parameters' description.
2024-02-01 11:07:20 +01:00
Silvano Seva
c4b7b7a337
Removed low-pass filtering of battery voltage in state update for GD77 and DM-1801
...
GD77 and DM-1801 already have an hardware low-pass filter on the battery measurement
probe which causes the low battery protection to trigger at boot if the digital low
pass filter is also used. Given that the hardware one is good enough for our purposes,
the digital filter is now excluded.
Provides a fix for #221
2024-01-09 18:54:41 +01:00
Silvano Seva
096da4102d
Utility functions to perform read/write/erase operations on NVM areas and partitions
2023-12-03 19:00:55 +01:00
Silvano Seva
be07b8f73e
Refactoring of W25Qx driver
2023-12-03 18:34:39 +01:00
Marco
5a0f92e23d
Add a volume bar in the bottom over the other bars
...
This will fix #190
2023-11-25 19:08:38 +01:00
Morgan Diepart
f43281e815
Display callsign on splash screen
2023-10-26 06:01:54 +02:00
Morgan Diepart
1124c76b73
Added M17 destination to settings
...
# callsign in backed-up settings
2023-10-23 00:40:55 +02:00
Niccolò Izzo
5d3c6c825d
Add radio settings for frequency offset, direction, and frequency step.
...
Add customizable frequency_step in radio state.
Offset is not yet selectable from Settings->Radio but only with keypad
from the VFO screen.
2023-10-16 21:49:56 +02:00
Niccolò Izzo
e939218001
Integrate west manifest to facilitate Zephyr build
...
Add west manifest contributed by edgetriggered to allow automated
cloning of the correst Zephyr revision.
Now codec2 dependency is enabled also for T-TWR build, enabling to build
it from scratch without first building a Miosix target.
Enabled non-cross build to use codec2 compiled sources.
2023-10-09 09:23:45 +02:00
marco
0126efe429
Fixed possible undeflow in battery charge level computation. Fix #192 .
...
We check if the battery is below minimum and, if so, assume that the charge
is 0%. This to prevent an underflow which would result in the function
returing a 100% charge level.
2023-09-22 19:32:29 +02:00
marco
77e0ad27a0
Added support for 1750Hz squelch tone, implemented squelch tone in UV-3x0 radio driver.
...
When pressing the Hash key and the PTT key in FM mode
a 1750 Hz tone is transmitted
2023-09-22 13:58:59 +02:00
Silvano Seva
73bfc2a15d
Set proper thread stack size also when using the Zephyr RTOS
2023-09-22 13:57:33 +02:00
Niccolò Izzo
e11c529807
Bump Zephyr to commit a4de2eb3d1756c
...
TODO: the include fixes can be probably refactored by including the
correct zephyr directories, as include/zephyr/posix/pthread.h should
already bringing in those header files.
TG-553
2023-09-20 21:16:43 +02:00
Niccolò Izzo
21895ae304
ttwrplus: disable Tx in menus
...
As T-TWR Plus reuses the PTT as a back button, thus we need to disable
PTT in menus. Also enforce rx_only logic from CPS.
TG-553
2023-09-20 21:16:40 +02:00
Niccolò Izzo
ad1beffcf3
ttwrplus: implemented PMU interrupts handling
...
TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo
024c7ffe3a
ttwrplus: fix sporadic missing TX
...
The bug was due to an uninitialized memory being used to configure the
RTX thread, that disabled Tx in a random way by randomly set the
txDisable field.
TG-553
2023-09-20 21:08:35 +02:00
Niccolò Izzo
0c27c9ce28
Enable Zephyr dynamic stack threads
...
Enable Zephyr dynamic stack posix threading, with stack pool of 4 and
stack size of 4096.
TG-553
2023-09-20 21:08:35 +02:00
Silvano Seva
dd13732343
Fix some compilation warnings generated by xtensa-espressif-gcc
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
7ce3a8a605
Fix compilation error caused by voiceprompts data section definitions
2023-09-20 21:08:35 +02:00
Marco
1a7d62fb42
Add UI and check for CAN on RX
2023-09-16 19:14:17 +02:00
Silvano Seva
c49ae03d01
Audio stream: fixed missing NULL pointer check in audio device driver selection.
2023-09-13 22:26:41 +02:00
Silvano Seva
c9cd620530
Audio codec: added function returning the codec's current operational status
2023-08-30 18:04:25 +02:00
Silvano Seva
fc5e3b0bce
Audio stream: cleanup dead streams while searching for an empty slot
2023-08-30 18:04:25 +02:00
Silvano Seva
e610979ac7
Codec2: second round of refactoring and implemented proper access contention in codec_startEncode()
2023-08-30 18:04:25 +02:00
Silvano Seva
5b3e136127
Audio codec: using a single condition variable for queue wait management.
2023-08-30 18:04:25 +02:00
Silvano Seva
dd118d0a87
Adapted voice prompt and M17 code to new codec2 API
2023-08-30 18:04:25 +02:00
Silvano Seva
94fdd1090b
Refactoring and improvement of codec2 module
2023-08-30 18:04:25 +02:00
Silvano Seva
7d90d15a5f
Adapt code to the new audio stream API.
2023-08-30 18:04:25 +02:00
Silvano Seva
24208db609
New unified audio stream manager
2023-08-30 18:04:25 +02:00
Silvano Seva
adf88611f4
Changed codec_startEncode() and codec_startDecode() input parameter from an audio source/sink to an audio path
2023-08-30 18:04:25 +02:00
Silvano Seva
60b771b375
Added function to get all the informations of a given audio path
2023-08-30 18:04:25 +02:00
Silvano Seva
1011dd1081
Moved audio_stream.h from interfaces to core headers
2023-08-30 18:04:24 +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
k5jae
c1a9db22b7
Made Brightness setting optional based on HW capabilities
2023-08-16 20:46:25 +02:00
Silvano Seva
28122a3bf3
Moved gps.h to peripherals
2023-07-21 08:32:26 +02:00