Moved macro for compile-time definition of the current target from per-target 'hwconfig.h' files to meson.build

replace/1e93430b7e3d610130007fdf999fbb583580fca7
Silvano Seva 2020-11-24 17:39:19 +01:00
rodzic 9ba2c79425
commit 50771c8bbe
4 zmienionych plików z 3 dodań i 9 usunięć

Wyświetl plik

@ -145,7 +145,7 @@ md380_src = src + stm32f405_src + ['platform/drivers/display/HX83XX_MDx.c',
'openrtx/src/graphics/graphics_rgb565.c']
md380_inc = inc + stm32f405_inc + ['platform/targets/MD-380']
md380_def = def + stm32f405_def
md380_def = def + stm32f405_def + {'PLATFORM_MD380': ''}
## TYT MD390
@ -159,7 +159,7 @@ md390_src = src + stm32f405_src + ['platform/drivers/display/HX83XX_MDx.c',
'openrtx/src/graphics/graphics_rgb565.c']
md390_inc = inc + stm32f405_inc + ['platform/targets/MD-390']
md390_def = def + stm32f405_def
md390_def = def + stm32f405_def + {'PLATFORM_MD390': ''}
@ -173,7 +173,7 @@ mduv380_src = src + stm32f405_src + ['platform/drivers/display/HX83XX_MDx.c',
'openrtx/src/graphics/graphics_rgb565.c']
mduv380_inc = inc + stm32f405_inc + ['platform/targets/MD-UV380']
mduv380_def = def + stm32f405_def
mduv380_def = def + stm32f405_def + {'PLATFORM_MDUV380': ''}
##

Wyświetl plik

@ -22,8 +22,6 @@
#include <stm32f4xx.h>
#define PLATFORM_MD380
/* Screen dimensions */
#define SCREEN_WIDTH 160
#define SCREEN_HEIGHT 128

Wyświetl plik

@ -22,8 +22,6 @@
#include <stm32f4xx.h>
#define PLATFORM_MD390
/* Screen dimensions */
#define SCREEN_WIDTH 160
#define SCREEN_HEIGHT 128

Wyświetl plik

@ -22,8 +22,6 @@
#include <stm32f4xx.h>
#define PLATFORM_MDUV380
/* Screen dimensions */
#define SCREEN_WIDTH 160
#define SCREEN_HEIGHT 128