Silvano Seva
fb9d8afb6c
Adapted MK22 vcom sources to miosix kernel but not activating it. Reconfigured x86 emulator.
2021-03-13 09:16:06 +01:00
Silvano Seva
093640478c
Moving to miosix kernel: adapted GDx drivers and part of the common code to new configuration
2021-03-13 09:16:06 +01:00
Federico Amedeo Izzo
dc5739b8bc
Fix GD-77 SPI flash pinout to make flash working
2021-03-01 20:54:00 +01:00
Silvano Seva
d69c237255
Fixed misspelled parameter of gpio_clearPin
2021-02-19 11:58:55 +01:00
Silvano Seva
af6c78542a
Added support for power gating gpio
2021-02-19 11:51:05 +01:00
Niccolò Izzo
4d66d8b1af
Fix various warnings
2021-02-17 11:21:46 +01:00
Federico Amedeo Izzo
c0a972963c
Add GPS flag to Linux target
2021-02-14 17:49:59 +01:00
Federico Amedeo Izzo
9255dfb969
Disable GPS functions for radios that don't support a GPS chip
2021-02-14 17:49:23 +01:00
Federico Amedeo Izzo
845d0b8a7d
Reduce RTX and Platform verbosity on Linux, add missing newline in RTX
2021-02-13 11:24:05 +01:00
Silvano Seva
2fbf5fcdeb
Extending MDx GPS driver also to MD-UV3x0 and MD-9600 targets.
2021-02-10 21:36:54 +01:00
Silvano Seva
9b9c521459
GPS driver for MD-3x0 targets
2021-02-04 09:57:43 +01:00
Silvano Seva
03d5184f86
Merged MD-380 and MD-390 targets into a new MD-3x0 one
2021-02-03 15:09:59 +01:00
Federico Amedeo Izzo
83d91b555d
Add hwInfo in Info menu
2021-02-02 21:45:10 +01:00
Silvano Seva
80c7668faa
Added a data structure providing some hardware information parameters and the relative platform API function to retrieve them
2021-02-01 21:27:31 +01:00
Silvano Seva
88387ee00d
Renamed 'GD77' folder to 'GD-77' to correctly match the device name
2021-02-01 15:55:45 +01:00
Federico Amedeo Izzo
50841f40ff
Enable contrast menu for DM-1801 and MD-9600
2021-01-29 23:11:11 +01:00
Federico Amedeo Izzo
450c965ee0
Disable contrast menu on targets without adjustable contrast
2021-01-29 22:57:24 +01:00
Niccolò Izzo
0b98f50a12
Add absolute knob positioning and horizontal keys emulation
2021-01-28 14:14:25 +01:00
Silvano Seva
41a413cfdd
RTX support for GD77 target
2021-01-24 18:59:12 +01:00
Silvano Seva
72220c377e
Implemented RTX driver for GDx platform, by now only supporting RX
2021-01-24 18:59:12 +01:00
Silvano Seva
9802bc4e75
Started implementation of baseband drivers for GDx platforms
2021-01-24 18:59:12 +01:00
Silvano Seva
8010302d4d
Tone generator and GPIO for audio control on MD-UV380 platform
2021-01-04 20:53:42 +01:00
Federico Amedeo Izzo
5f5c993f9a
Remove separate MD-UV380G platform files.
...
From now on they will be shared with MD-UV380,
with only a GPS define set in meson.build.
2021-01-03 08:25:37 +01:00
Silvano Seva
48775a71fd
Finalising merge of branch master into GDx-development
2021-01-02 15:17:15 +01:00
Silvano Seva
ff7216e9cd
Driver for AT24Cx external EEPROM present on GDx devices
2021-01-02 15:07:14 +01:00
Silvano Seva
aad19cc41c
Driver for external SPI flash memory on Baofeng DM-1801
2021-01-02 15:07:14 +01:00
Federico Amedeo Izzo
b74dba7564
Differentiate MDUV380G target from MDUV380
2021-01-02 12:08:58 +01:00
Federico Amedeo Izzo
94b7be826a
Disable RTC related code on platforms without a functional RTC
2021-01-01 18:58:35 +01:00
Federico Amedeo Izzo
8163eba67b
Add MD-9600 support, boot and USB serial working
2021-01-01 18:32:50 +01:00
Silvano Seva
142d6e90b9
In all the platforms having it, added RTC initialisation to platform_init()
2020-12-31 17:55:04 +01:00
Federico Amedeo Izzo
418fec0ac9
Platform: Fix wrong VHF high limit
2020-12-31 15:06:50 +01:00
Federico Amedeo Izzo
7a9135d746
Platform: Add frequency limit check
2020-12-31 14:51:19 +01:00
Niccolò Izzo
c77cc46fb6
Fix include syntax
...
Interface header includes have acquired the interface prefix, to
distinguish them from regular header includes.
2020-12-24 16:30:13 +01:00
Silvano Seva
f38ce61dc9
ADC driver for GDx targets
2020-12-22 15:29:32 +01:00
Silvano Seva
4f34822db2
Implemented backlight dimming for GD77 and DM-1801 targets
2020-12-21 12:55:34 +01:00
Silvano Seva
18709607b3
Board support package for Radioddity DM-1801
2020-12-20 15:14:50 +01:00
Niccolò Izzo
d56fafe1a2
Merge graphics_* into a single compilation unit
...
The specialized graphics libraries ended up sharing the majority of the
code, now they have been merged into a single library so that the
graphics development can be done quicker without leaving any of the
platforms behind.
2020-12-19 12:49:30 +01:00
Silvano Seva
1f8840b3ca
Reorganised and cleaned up GD77 BSP files
2020-12-18 18:28:47 +01:00
Silvano Seva
0d5a703521
Began integrating RTX driver with all the other code
2020-12-13 11:44:07 +01:00
Niccolò Izzo
41ec005680
Implement battery voltage to charge conversion
...
Voltage to charge nonlinear function is being linearly approximated in
the operating range.
2020-12-11 14:09:36 +01:00
Silvano Seva
2f05bbc6ff
Added compilation of MD3x0 rtx source files to MD390 target
2020-12-06 19:49:10 +01:00
Silvano Seva
0fee5acbf0
Complete refactoring of both rtx API and its implementation for MD3x0 platforms
2020-12-06 19:33:27 +01:00
Silvano Seva
55b182406d
Initial implementation of rtx driver for TYT MD-380 radio, by now supporting only analog FM reception
2020-12-06 19:33:27 +01:00
Federico Amedeo Izzo
17376b819a
hwconfig: Define MAX_VBAT for MD-UV380
2020-12-06 18:29:38 +01:00
Niccolò Izzo
1ee4744cb7
Improve battery icon drawing implementation
...
Fix a bug where the signature of the battery draw function was not
present, causing a build error. Now the battery size and position is
screen size independent and should work for all layouts.
2020-12-06 16:22:38 +01:00
Niccolò Izzo
f1400ac528
Add battery icon
2020-12-06 16:19:46 +01:00
Fred
41ecb11d3a
Add GD77 keyboard driver
2020-12-05 15:27:04 +01:00
Fred
c096e946a4
Change GD77 display padding and font size
2020-12-04 20:49:04 +01:00
Fred
5d9ac78548
Fix GD77 display driver
2020-12-04 20:39:20 +01:00
Silvano Seva
eaaaca648b
Support package for Radioddity GD77
2020-12-04 20:39:19 +01:00
Silvano Seva
774468ae46
Added to platform API a function allowing to retrieve device calibration data
2020-12-04 10:45:03 +01:00
Fred
7db1ee28e8
Fix gcc warnings in emulator.c
2020-11-29 13:29:11 +01:00
Silvano Seva
50771c8bbe
Moved macro for compile-time definition of the current target from per-target 'hwconfig.h' files to meson.build
2020-11-24 17:39:19 +01:00
Silvano Seva
7a6f39ad26
Added NVM driver compilation for all the MDx family devices and reorganised the platform test printing the calibration, now merged into one single file for all the MDx devices.
2020-11-24 15:42:57 +01:00
Silvano Seva
8ddebef197
Dumping security registers of MD-UV380
2020-11-24 12:41:20 +01:00
Silvano Seva
310f19c6b7
API to access external nonvolatile memory, implementation for MD3x0 devices and testsuite for printing calibration values of MD3x0 devices
2020-11-21 09:37:12 +01:00
Silvano Seva
1cf2a40182
Changed names of source files for MDx drivers to comply to new naming convention
2020-11-19 18:24:28 +01:00
Fred
de6fa813af
Move assets folder and add splash screen gif
2020-11-19 12:31:28 +01:00
Fred
610da21013
Fix emulator compilation errors
2020-11-17 21:58:24 +01:00
Federico Amedeo Izzo
fc3ee1d6ed
emulator.h: Remove not needed SDL_image dependency
2020-11-17 18:00:38 +01:00
Fred
e917738516
Add initial emulator implementation
2020-11-17 15:44:06 +01:00
Silvano Seva
85a89d1f84
Doubled the prescale value of all the timers, since they run at twice the frequency of the bus they are connected to
2020-11-16 18:03:02 +01:00
Silvano Seva
01ee477b02
Workaround for an STM32F405 bug causing a delay between an RCC peripheral clock enable and the effective peripheral enabling, as described in ST's silicon errata sheet
2020-11-16 11:24:52 +01:00
Silvano Seva
72988cd5cf
Fix for both issue #5 and a bug in keyboard driver leading to undetected keypresses in some cases
2020-11-15 20:38:28 +01:00
Silvano Seva
793a2dcd52
Adding build target for Tytera MD-390 radio
2020-11-13 16:57:49 +01:00
Silvano Seva
9458fd252b
Moving to a general flag for x-axis mirroring in MDxx380 display driver
2020-11-13 16:32:57 +01:00
Silvano Seva
f7fde110bb
Tone generator for CTCSS and user interface 'beep' on MD380
2020-11-13 14:31:43 +01:00
Silvano Seva
a5eeca7dae
Moving ADC driver for MDxx380 family to common drivers folder.
2020-11-13 08:58:10 +01:00
Silvano Seva
6c2e3153c7
Added, for each hconfig.h, a define directive to allow to uniquely identify the target platform during compilation
2020-11-03 22:41:34 +01:00
Federico Amedeo Izzo
46add610e1
UI: Add battery indicator
2020-11-03 15:15:36 +01:00
Federico Amedeo Izzo
b0e83c4303
Fix compilation for MD-UV380
2020-11-03 15:15:36 +01:00
Silvano Seva
a232caf7ec
Cleaned up MD-UV380 hwconfig and platform API implementation, removed pins and function bodies not corresponding to any known functionality.
2020-11-03 15:15:36 +01:00
Silvano Seva
b0f5341304
Added flag for 'monitor' button to keyboard driver, implemented 'monitor' and 'function' buttons in MDxx380 keyboard driver
2020-11-03 15:15:36 +01:00
Silvano Seva
9a94efb1c7
Keyboard driver for MD-380 and MD-UV380
2020-11-03 15:15:36 +01:00
Fred
b434793baf
Add linux implementation of the platform API
2020-11-03 15:15:36 +01:00
Silvano Seva
2350103831
Made platform_getVbat returning the battery voltage in V instead of mV.
2020-11-03 15:15:36 +01:00
Federico Amedeo Izzo
adb4995653
MD-UV380: Separate target from MD380, add platform.c code
2020-11-03 15:15:36 +01:00
Silvano Seva
fed1146690
Adding channel selector and PTT to MD-380 platform API
2020-11-03 15:15:36 +01:00
Silvano Seva
8a3872e5f9
Added to platform API a function which allows to query the PTT status
2020-11-03 15:15:36 +01:00
Silvano Seva
bdd5ea6c7b
Implemented display backlight regulation for MD-UV380
2020-11-03 15:15:36 +01:00
Silvano Seva
6e758fe92b
Initial implementation of the platform API for MD-UV380 target
2020-11-03 15:15:36 +01:00
Silvano Seva
05f180f596
Implementing the remaining API specified in platform.h for MD380 target
2020-11-03 15:15:36 +01:00
Federico Amedeo Izzo
cb099b1171
Add MD-UV380 platform files
2020-11-03 15:15:36 +01:00
Fred
3671b737d9
Fix gcc printf warning
2020-11-03 15:15:36 +01:00
Fred
1d0fff3489
Add platform files for linux build
2020-11-03 15:15:36 +01:00
Silvano Seva
7ff11ff5a3
Fixing compilation issues after having added hwconfig.h and platform.c for MD380 radio
2020-11-03 15:15:36 +01:00
Silvano Seva
ba40d5f70f
Moving GPIO definitions to hwconfig.h
2020-11-03 15:15:36 +01:00
Silvano Seva
beb33ff244
Moved constants for screen dimensions to platform-dependent hwconfig file
2020-11-03 15:15:35 +01:00
Silvano Seva
06346ac827
Moving function for setting display backlight level from display driver to 'platform.c' file
2020-11-03 15:15:35 +01:00
Silvano Seva
4ab8cb55e8
Creating folder structure
2020-11-03 15:15:35 +01:00