From 1f74c0abb79a3988561d15ea2254915620b8e151 Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Sun, 6 Jun 2021 10:13:51 +0200 Subject: [PATCH] Add `VCOM_ENABLED` define to disable VCOM that is currently broken --- platform/mcu/STM32F4xx/boot/bsp.cpp | 2 ++ platform/targets/DM-1801/hwconfig.h | 3 +++ platform/targets/GD-77/hwconfig.h | 3 +++ platform/targets/MD-3x0/hwconfig.h | 3 +++ platform/targets/MD-9600/hwconfig.h | 3 +++ platform/targets/MD-UV3x0/hwconfig.h | 3 +++ 6 files changed, 17 insertions(+) diff --git a/platform/mcu/STM32F4xx/boot/bsp.cpp b/platform/mcu/STM32F4xx/boot/bsp.cpp index 7dd077bb..c3eae09d 100644 --- a/platform/mcu/STM32F4xx/boot/bsp.cpp +++ b/platform/mcu/STM32F4xx/boot/bsp.cpp @@ -54,7 +54,9 @@ void IRQbspInit() void bspInit2() { +#ifdef VCOM_ENABLED vcom_init(); +#endif } // diff --git a/platform/targets/DM-1801/hwconfig.h b/platform/targets/DM-1801/hwconfig.h index edfe16a9..5b76775c 100644 --- a/platform/targets/DM-1801/hwconfig.h +++ b/platform/targets/DM-1801/hwconfig.h @@ -23,6 +23,9 @@ #include "MK22F51212.h" +/* Enable Serial over USB support */ +//#define VCOM_ENABLED + /* Screen dimensions */ #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64 diff --git a/platform/targets/GD-77/hwconfig.h b/platform/targets/GD-77/hwconfig.h index 5160285d..4ecf54af 100644 --- a/platform/targets/GD-77/hwconfig.h +++ b/platform/targets/GD-77/hwconfig.h @@ -23,6 +23,9 @@ #include "MK22F51212.h" +/* Enable Serial over USB support */ +//#define VCOM_ENABLED + /* Screen dimensions */ #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64 diff --git a/platform/targets/MD-3x0/hwconfig.h b/platform/targets/MD-3x0/hwconfig.h index be49ee6f..7c22eae9 100644 --- a/platform/targets/MD-3x0/hwconfig.h +++ b/platform/targets/MD-3x0/hwconfig.h @@ -22,6 +22,9 @@ #include +/* Enable Serial over USB support */ +//#define VCOM_ENABLED + /* Device has a working real time clock */ #define HAS_RTC diff --git a/platform/targets/MD-9600/hwconfig.h b/platform/targets/MD-9600/hwconfig.h index cb751470..a77aa97e 100644 --- a/platform/targets/MD-9600/hwconfig.h +++ b/platform/targets/MD-9600/hwconfig.h @@ -23,6 +23,9 @@ #include +/* Enable Serial over USB support */ +//#define VCOM_ENABLED + /* Device has a working real time clock */ #define HAS_RTC diff --git a/platform/targets/MD-UV3x0/hwconfig.h b/platform/targets/MD-UV3x0/hwconfig.h index 06236d10..a2ab3af9 100644 --- a/platform/targets/MD-UV3x0/hwconfig.h +++ b/platform/targets/MD-UV3x0/hwconfig.h @@ -22,6 +22,9 @@ #include +/* Enable Serial over USB support */ +//#define VCOM_ENABLED + /* Device has a working real time clock */ #define HAS_RTC