Skip to content

Commit

Permalink
Compatibility with Teensyduino 1.59 Beta 4
Browse files Browse the repository at this point in the history
  • Loading branch information
tsandmann committed Dec 3, 2023
1 parent 48e35f1 commit 8229b97
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ platform = https://github.com/tsandmann/platform-teensy.git
board = teensy41
framework = arduino
lib_deps = https://github.com/tsandmann/freertos-teensy.git
build_flags = -Wformat=1
build_flags = -Wformat=1 -DUSB_SERIAL -DTEENSY_OPT_FASTER_LTO
upload_flags = -v
upload_protocol = teensy-cli
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/tsandmann/freertos-teensy"
},
"version": "10.5.1-8",
"version": "10.5.1-9",
"authors": [
{
"name": "Richard Barry",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=freertos-teensy
version=10.5.1-8
version=10.5.1-9
author=Richard Barry <info@freertos.org>
maintainer=Timo Sandmann
sentence=<h3>FreeRTOS Real Time Operating System implemented for Teensy (3.5, 3.6, 4.0, 4.1).</h3>
Expand Down
5 changes: 5 additions & 0 deletions src/portable/teensy_4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "event_responder_support.h"
#include "avr/pgmspace.h"
#include "EventResponder.h"
#include "imxrt.h"

#define __ASM __asm
#define __STATIC_INLINE static inline
Expand Down Expand Up @@ -182,7 +183,11 @@ FLASHMEM void yield() {
#if !defined DISABLE_ARDUINO_HWSERIAL
// Current workaround until integrate with EventResponder.
if (check_flags & YIELD_CHECK_HARDWARE_SERIAL) {
#ifdef FLEXIO_TIMCFG_STARTBIT_DISABLED // workaround to check for Teensyduino >= 1.59 Beta 4
HardwareSerialIMXRT::processSerialEventsList();
#else
HardwareSerial::processSerialEventsList();
#endif
}
#endif // !DISABLE_ARDUINO_HWSERIAL

Expand Down

0 comments on commit 8229b97

Please sign in to comment.