Wykres commitów

147 Commity (206daec8619641179d03fa58df384b1e6e8ed4ee)

Autor SHA1 Wiadomość Data
Silvano Seva b1412dedb8 Added 'OSIntEnter'/'OSIntExit' to MDx tone generator ISR 2020-12-06 19:33:27 +01:00
Silvano Seva aa0e1f479e Fixed error in function to set HR_C5000 modulation bias, merged rx and tx testsuites for MD380 2020-12-06 19:33:27 +01:00
Silvano Seva 29f5b82488 Refactoring code of HR_C5000 driver, adding documentation and sharpening its API. 2020-12-06 19:33:27 +01:00
Silvano Seva bd9a258541 More refactoring of HR-C5000 driver, cleaning up command sequences 2020-12-06 19:33:27 +01:00
Silvano Seva 88ea167804 Began refactoring of HR-C5000 driver 2020-12-06 19:33:27 +01:00
Silvano Seva 46f68ebca6 First skeleton of a driver for HR-C5000 and made TX working on TYT MD-380 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 0d437b239d Add GD77 keyboard file 2020-12-04 20:39:20 +01:00
Fred 5d9ac78548 Fix GD77 display driver 2020-12-04 20:39:20 +01:00
Silvano Seva 8762a9e3a8 Display driver for GD77, still work in progress 2020-12-04 20:39:19 +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
Silvano Seva d4cdba2243 Moved calibration data structures from 'platform/drivers/NVM' to 'openrtx/include/calibration', since various modules need them 2020-12-04 10:27:04 +01:00
Fred 7db1ee28e8 Fix gcc warnings in emulator.c 2020-11-29 13:29:11 +01:00
Federico Amedeo Izzo efc4820328 Keyboard: Replace uint32_t with keyboard_t 2020-11-28 09:51:18 +01:00
Silvano Seva 3bb7e2cfd4 Moved to static allocated framebuffer and USB vcom rx buffer 2020-11-27 22:34:25 +01:00
Silvano Seva 4dbdb5ddbb Implemented reading of channel data from external flash memory for MDx targets 2020-11-25 16:40:17 +01:00
Silvano Seva 83f375c675 Merged MD3x0 and MDUV3x0 calibration data structures into a single header file for MDx family 2020-11-25 13:57:36 +01:00
Silvano Seva 8b60ad83b4 Added sample averaging to MDx ADC driver 2020-11-25 10:26:53 +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 9ba2c79425 Code changes to remove a bunch of compiler warnings 2020-11-24 17:27:30 +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 8efbfab6e1 Fixed parsing errors in MD-UV3x0 calibration data loader 2020-11-24 12:41:20 +01:00
Silvano Seva e690a36dd1 Implemented NVM interface API also for MD-UV3x0 targets 2020-11-24 12:41:20 +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 9b14e9fae7 Low-level driver for external SPI flash memory on MDx family devices 2020-11-20 14:47:52 +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
Silvano Seva 552a88ed4c Reorganising includes in MDxx380 tone generator source file 2020-11-19 12:53:13 +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
Federico Amedeo Izzo a58eaa2a08 keyboard_linux.c: add kbd_init() implementation to fix compilation on Linux 2020-11-16 21:29:10 +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 76086d567f Fixed regression affecting USB virtual COM port on TYT MD-380 2020-11-16 11:02:31 +01:00
Silvano Seva 89e822813b Adding the remaining part of issue #5 fix, forgot in the previous commit 2020-11-15 21:16:49 +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 eb876f1b0c Fixed bad clock tree configuration for STM32F405 MCU 2020-11-13 12:27:07 +01:00
Silvano Seva a5eeca7dae Moving ADC driver for MDxx380 family to common drivers folder. 2020-11-13 08:58:10 +01:00
Fred f10a6e426c Improve SDL keyboard event handling 2020-11-11 11:01:27 +01:00
Silvano Seva b4b3b3fa5a Fixing screen orientation for MD380 2020-11-03 22:46:58 +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
Fred 9f9b76e9b5 Make the SDL window resizable 2020-11-03 15:15:36 +01:00
Federico Amedeo Izzo 46add610e1 UI: Add battery indicator 2020-11-03 15:15:36 +01:00
Federico Amedeo Izzo c0e4115482 UI: Add clock to top bar, add rtc.c for Linux 2020-11-03 15:15:36 +01:00
Silvano Seva 4cdc51a36b Temporarily disabling critical sections in STM32 RTC driver due to compilation issues, to be fixed 2020-11-03 15:15:36 +01:00
Fred 3d1f255d46 Add keyboard implementation for linux 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
Silvano Seva bf3488def8 Improved check for rendering in progress in HX83XX display driver, now both chip select and DMA enable bit are verified 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 69c96c1d81 Renamed source file of display driver for MD-380 and MD-UV380 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
Federico Amedeo Izzo 6b0f0242d1 Remove screenWidth and screenHeight getters. 2020-11-03 15:15:36 +01:00
Fred 3671b737d9 Fix gcc printf warning 2020-11-03 15:15:36 +01:00
Silvano Seva fc0b3ef89e Suppressed a bit of warnings 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 00d726ddbc Moved bootstrap code into a dedicated file to improve readability 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 99b2280f76 Adding interface for RTC drivers 2020-11-03 15:15:36 +01:00
Silvano Seva 9b20e5010c Made gpio API completely platform independent 2020-11-03 15:15:35 +01:00
Silvano Seva beb33ff244 Moved constants for screen dimensions to platform-dependent hwconfig file 2020-11-03 15:15:35 +01:00
Federico Amedeo Izzo c3ef0ca036 Remove backlight control from anywhere except platform.c and platform.h 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
Niccolò Izzo 4a27aadcc2 Fix typo 2020-11-03 15:15:35 +01:00
Silvano Seva e5decb7244 Fixed endianness reordering in MD380 display driver, now it reorders only the lines to be rendered instead of the whole framebuffer 2020-11-03 15:15:35 +01:00
Silvano Seva bdb59a3ff9 Adapting MD380 display driver to uC/OS-III, making little code reorganisation and embedding endianness reordering into display_render() 2020-11-03 15:15:35 +01:00
Silvano Seva b9517e5867 Adding support for 8bpp grayscale and 1bpp black/white pixel formats to SDL-based display emulator, keeping 16bpp RGB565 as the default one. 2020-11-03 15:15:35 +01:00
Niccolò Izzo 6420d2b2c1 Add TYT MD380 build target
Add meson cross-compilation configuration for building for the TYT
MD-380 and MD-UV380 radios.
2020-11-03 15:15:35 +01:00
Silvano Seva 638707a6aa Renamed 'lcd.h' to 'display.h' and updated the function names for low-level display driver. 2020-11-03 15:15:35 +01:00
Silvano Seva f043581928 Making the interface for low-level display drivers more general: now the pointer to framebuffer is returned as void *. Updated existing drivers and test code accordingly. 2020-11-03 15:15:35 +01:00
Silvano Seva ad8d89cd3e Testing uC/OS-III on STM32F4 MCU 2020-11-03 15:15:35 +01:00
Silvano Seva b2d613f38b Improved lcd_terminate function in SDL-based lcd driver 2020-11-03 15:15:35 +01:00
Silvano Seva 2cfca62b00 Driver for SDL-based display emulator, updated lcd.h documentation 2020-11-03 15:15:35 +01:00
Silvano Seva 564c7b94d9 Added missing folder 2020-11-03 15:15:35 +01:00
Silvano Seva 4ab8cb55e8 Creating folder structure 2020-11-03 15:15:35 +01:00
Silvano Seva 327d8c193c Start migrating code from previous work 2020-11-03 15:15:35 +01:00