Commit Graph

99 Commits

Author SHA1 Message Date
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 2a2ca57015 Add seconds to top bar clock 2020-11-29 13:23:21 +01:00
Federico Amedeo Izzo e62458119a Keyboard: Increase thread stack and send multiple events if a key is kept pressed 2020-11-29 09:09:59 +01:00
Federico Amedeo Izzo 869cb673b6 Keyboard: Manage keyboard status with a queue 2020-11-29 08:45:17 +01:00
Federico Amedeo Izzo 42ccc3ac28 GFX: Add gfx_clearRows() implementation 2020-11-29 08:43:58 +01:00
Silvano Seva 5f669d1c18 Made task stack size platform dependent, since values for ARM target were too small for a correct execution on x64 2020-11-28 21:19:37 +01:00
Federico Amedeo Izzo b0b772cd50 Keyboard: Add missing keyboard.h include 2020-11-28 09:53:44 +01:00
Federico Amedeo Izzo efc4820328 Keyboard: Replace uint32_t with keyboard_t 2020-11-28 09:51:18 +01:00
Niccolò Izzo 87ec8389cd Fix frequency representation bug
Divide the frequency decimals by ten to ensure the we do not overflow
the 5 digits we can fit into the available space on the screen.
2020-11-27 16:31:11 +01:00
Silvano Seva 8b877ed6d0 Narrowed down RAM usage 2020-11-27 15:07:39 +01:00
Silvano Seva bf24c31be7 Increased UI task stack size to 1kB, fixed some compiler warnings, code cleanup pass 2020-11-27 10:12:54 +01:00
Federico Amedeo Izzo 82be1afe17 UI: Add VFO frequency change 2020-11-26 22:44:39 +01:00
Federico Amedeo Izzo 32bbbfb9de GFX: Remove missing dots workaround 2020-11-26 22:22:07 +01:00
Federico Amedeo Izzo 00fd786b8e UI: Switch to alternative splash screen 2020-11-26 21:12:05 +01:00
Federico Amedeo Izzo b4952592aa UI: Add alternative Splash Screen 2020-11-26 17:18:53 +01:00
Federico Amedeo Izzo f7b1423053 UI: Fix uint32_t frequency printing 2020-11-26 16:53:17 +01:00
Silvano Seva 5d964f3358 Reorganised radio state data structure, bringing in new channel_t variable. 2020-11-26 15:25:26 +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 9ba2c79425 Code changes to remove a bunch of compiler warnings 2020-11-24 17:27:30 +01:00
Silvano Seva 380f489eb0 Changed underlying type of 'freq_t' from 'float' to 'uint32_t' 2020-11-24 15:39:10 +01:00
Silvano Seva 65e4643f1e Code cleanup and suppression of some compilation warnings 2020-11-24 14:23:05 +01:00
Federico Amedeo Izzo 32ccd29c5c State: Add sane initialization 2020-11-21 11:02:49 +01:00
Federico Amedeo Izzo 3370e5a3a7 Add shared state logic 2020-11-21 10:46:48 +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
Federico Amedeo Izzo bd176d7142 Fonts: Manually fixed font to make it more symmetric 2020-11-19 22:59:15 +01:00
Niccolò Izzo a6c9bf6dd8 Quick fix of missing dots 2020-11-19 22:18:36 +01:00
Federico Amedeo Izzo 56dfb38c2a UI: Hide random pixels with a 30ms delayed backlight 2020-11-19 21:41:28 +01:00
Federico Amedeo Izzo 0ebd942c7a UI: Move VFO to 2nd and 3rd line, remove VFO Demo text 2020-11-19 21:02:19 +01:00
Federico Amedeo Izzo 0f0d6fe344 UI: Add top and bottom lines 2020-11-19 17:05:10 +01:00
Federico Amedeo Izzo f2d9db024c Graphics: Add drawHLine and drawVLine functions 2020-11-18 16:56:32 +01:00
Federico Amedeo Izzo 0b8bb486a4 UI: Add VFO Demo text 2020-11-18 10:12:14 +01:00
Federico Amedeo Izzo 39d5912adc UI: Add 3 font sizes, fix UI padding for new fonts. 2020-11-17 22:50:27 +01:00
Niccolò Izzo 1639ddf174 Remove OpenGD77 font 2020-11-17 14:42:23 +01:00
Niccolò Izzo 91d0e05af7 Replace OpenGD77 fonts with Adafruit GFX fonts
OpenGD77 custom binary font format was replaced with Adafruit GFX
library standard font format, to be able to reuse all the available
fonts, together with the relative tools.
2020-11-17 14:42:23 +01:00
Niccolò Izzo c0ed3a7466 Add Adafruit GFX library fonts 2020-11-17 14:32:54 +01:00
Silvano Seva e2dd96356d Refactored UI source code 2020-11-16 09:03:03 +01:00
Silvano Seva 86e7f82ace Moved platform initialisation to main() function 2020-11-16 08:42:10 +01:00
Silvano Seva 1b4b000b66 Adding file left behind in the previous commit 2020-11-15 22:25:43 +01:00
Silvano Seva b06b120148 Reorganising thread structure, moving thread bodies and thread creation function into a dedicated source file to make overall source code more easily readable 2020-11-15 22:23:32 +01:00
Federico Amedeo Izzo 11854aaaa6 ui.c: Remove infinite loop, now handled by task execution in main.c 2020-11-15 21:25:42 +01:00
Federico Amedeo Izzo 3feaa992b8 main.c: Set task priorities 2020-11-15 10:13:32 +01:00
Federico Amedeo Izzo 1000133c01 Create thread structure
Now main.c creates four threads to manage
- UI
- Platform state
- Analog radio
- Digital radio

Every thread has an entry point named `*_main()` like `ui_main()`
that gets executed periodically depending on the given interval
2020-11-14 19:33:56 +01:00
Silvano Seva 5ba7563638 Added missin include to ui.c 2020-11-03 21:47:10 +01:00
Federico Amedeo Izzo 45849c0f60 UI: Fix missing zeroes from clock and VBat 2020-11-03 15:15:36 +01:00
Federico Amedeo Izzo 1bed1b5cfe Remove dubious font 2020-11-03 15:15:36 +01:00
Federico Amedeo Izzo 58cb6857a5 UI: Add responsive layout calculation 2020-11-03 15:15:36 +01:00
Federico Amedeo Izzo a19ba1785e UI: Add VFO frequency to main screen 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