From 7a31dfba3d4648f502b5ff1f68171317e6bdbae9 Mon Sep 17 00:00:00 2001 From: marco <49691247+marcoSchr@users.noreply.github.com> Date: Sat, 30 Dec 2023 15:29:18 +0100 Subject: [PATCH] Configured linux target for Module17 emulation similar to a Module17 rev. 0.1e --- meson.build | 6 ++++-- platform/targets/linux/hwconfig.h | 6 ------ platform/targets/linux/platform.c | 3 ++- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/meson.build b/meson.build index 57db3ff1..75b57e88 100644 --- a/meson.build +++ b/meson.build @@ -290,8 +290,10 @@ linux_def += openrtx_def # Standard UI # linux_default_src = linux_src + ui_src_default -linux_default_def = linux_def + {'SCREEN_WIDTH': '160', 'SCREEN_HEIGHT': '128', 'PIX_FMT_RGB565': ''} -linux_small_def = linux_def + {'SCREEN_WIDTH': '128', 'SCREEN_HEIGHT': '64', 'PIX_FMT_BW': ''} +linux_default_def = linux_def + {'SCREEN_WIDTH': '160', 'SCREEN_HEIGHT': '128', 'PIX_FMT_RGB565': '', + 'GPS_PRESENT': '', 'RTC_PRESENT': ''} +linux_small_def = linux_def + {'SCREEN_WIDTH': '128', 'SCREEN_HEIGHT': '64', 'PIX_FMT_BW': '', + 'GPS_PRESENT': '', 'RTC_PRESENT': ''} # # Module17 UI diff --git a/platform/targets/linux/hwconfig.h b/platform/targets/linux/hwconfig.h index 36db3c7d..2ca3d6b2 100644 --- a/platform/targets/linux/hwconfig.h +++ b/platform/targets/linux/hwconfig.h @@ -22,12 +22,6 @@ extern "C" { #endif -/* Device has a working real time clock */ -#define RTC_PRESENT - -/* Device supports an optional GPS chip */ -#define GPS_PRESENT - /* Screen has adjustable brightness */ #define SCREEN_BRIGHTNESS diff --git a/platform/targets/linux/platform.c b/platform/targets/linux/platform.c index 6979a245..c6c5fdb2 100644 --- a/platform/targets/linux/platform.c +++ b/platform/targets/linux/platform.c @@ -38,7 +38,8 @@ static const hwInfo_t hwInfo = .uhf_maxFreq = 480, .uhf_minFreq = 400, .uhf_band = 1, - .name = "Linux" + .name = "Linux", + .hw_version = 1 };