STM32F1: Only include USBComposite if flagged (#15243)

2.0.x
Tanguy Pruvot 5 years ago committed by Scott Lahteine
parent 1ab3521351
commit 5bf635cec2

@ -42,7 +42,10 @@
#include <util/atomic.h> #include <util/atomic.h>
#include "../../inc/MarlinConfigPre.h" #include "../../inc/MarlinConfigPre.h"
#include "msc_sd.h"
#ifdef USE_USB_COMPOSITE
#include "msc_sd.h"
#endif
// ------------------------ // ------------------------
// Defines // Defines
@ -60,12 +63,6 @@
#define MSerial4 Serial4 #define MSerial4 Serial4
#define MSerial5 Serial5 #define MSerial5 Serial5
#else #else
#ifndef USE_USB_COMPOSITE
extern USBSerial SerialUSB;
#define UsbSerial SerialUSB
#else
#define UsbSerial MarlinCompositeSerial
#endif
#define MSerial1 Serial #define MSerial1 Serial
#define MSerial2 Serial1 #define MSerial2 Serial1
#define MSerial3 Serial2 #define MSerial3 Serial2

@ -13,7 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
#pragma once #pragma once
#include <USBComposite.h> #include <USBComposite.h>

@ -23,9 +23,7 @@ default_envs = megaatmega2560
[common] [common]
default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared> default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
build_flags = -fmax-errors=5 build_flags = -fmax-errors=5 -g
-g
-ggdb
lib_deps = lib_deps =
U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
LiquidCrystal@1.3.4 LiquidCrystal@1.3.4

Loading…
Cancel
Save