From 78a1d99d03c05cbf9b4cf0b8c9a1a410c938d5c6 Mon Sep 17 00:00:00 2001 From: PaulStoffregen Date: Sat, 22 Apr 2023 14:22:50 -0700 Subject: [PATCH] Update sample makefiles fixes #702 --- teensy3/Makefile | 4 ++-- teensy4/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/teensy3/Makefile b/teensy3/Makefile index 239912b7e..0cbccc3dd 100644 --- a/teensy3/Makefile +++ b/teensy3/Makefile @@ -53,7 +53,7 @@ endif OPTIONS = -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE # options needed by many Arduino libraries to configure for Teensy 3.x -OPTIONS += -D__$(MCU)__ -DARDUINO=10805 -DTEENSYDUINO=144 +OPTIONS += -D__$(MCU)__ -DARDUINO=10805 -DTEENSYDUINO=159 # use "cortex-m4" for Teensy 3.x # use "cortex-m0plus" for Teensy LC @@ -100,7 +100,7 @@ endif CPPFLAGS = -Wall -g -Os -mcpu=$(CPUARCH) -mthumb -MMD $(OPTIONS) -I. # compiler options for C++ only -CXXFLAGS = -std=gnu++14 -felide-constructors -fno-exceptions -fno-rtti +CXXFLAGS = -std=gnu++17 -felide-constructors -fno-exceptions -fno-rtti # compiler options for C only CFLAGS = diff --git a/teensy4/Makefile b/teensy4/Makefile index 4eb68c25d..e41a4ecde 100644 --- a/teensy4/Makefile +++ b/teensy4/Makefile @@ -67,7 +67,7 @@ OPTIONS = -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE # -DUSB_FLIGHTSIM_JOYSTICK # options needed by many Arduino libraries to configure for Teensy model -OPTIONS += -D__$(MCU)__ -DARDUINO=10813 -DTEENSYDUINO=154 -D$(MCU_DEF) +OPTIONS += -D__$(MCU)__ -DARDUINO=10813 -DTEENSYDUINO=159 -D$(MCU_DEF) # for Cortex M7 with single & double precision FPU CPUOPTIONS = -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb @@ -124,7 +124,7 @@ endif CPPFLAGS = -Wall -g -O2 $(CPUOPTIONS) -MMD $(OPTIONS) -I. -ffunction-sections -fdata-sections # compiler options for C++ only -CXXFLAGS = -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing +CXXFLAGS = -std=gnu++17 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing # compiler options for C only CFLAGS =