Skip to content

Commit

Permalink
Move "core_pins.h" include from source to header file
Browse files Browse the repository at this point in the history
Done to fix the following errors if attempting to compile usb_serial.h as C++ code:
usb_serial.h:93:25: error: 'yield' was not declared in this scope
usb_serial.h:177:45: error: 'millis' was not declared in this scope
  • Loading branch information
forderud committed Oct 2, 2024
1 parent 7d7fb67 commit a371b3f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion teensy4/usb_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "avr/pgmspace.h" // for PROGMEM, DMAMEM, FASTRUN

#include "debug/printf.h"
#include "core_pins.h"

// defined by usb_dev.h -> usb_desc.h
#if defined(CDC_STATUS_INTERFACE) && defined(CDC_DATA_INTERFACE)
Expand Down
1 change: 1 addition & 0 deletions teensy4/usb_serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#pragma once

#include "core_pins.h"
#include "usb_desc.h"
#include <stdint.h>

Expand Down

0 comments on commit a371b3f

Please sign in to comment.