Pārlūkot izejas kodu

teensy3: usb_serial: Add missing include and declaration

- usb_serial_class::readBytes() calls millis(), hence it should
    include "core_pins.h",
  - usb_serial_flush_callback() is a public function, but is not
    declared in the header file.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
teensy4-core
Geert Uytterhoeven pirms 4 gadiem
vecāks
revīzija
c7ef5e1d6e
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      teensy3/usb_serial.h

+ 3
- 0
teensy3/usb_serial.h Parādīt failu

@@ -39,6 +39,8 @@

#if F_CPU >= 20000000 && !defined(USB_DISABLED)

#include "core_pins.h" // for millis()

// C language implementation
#ifdef __cplusplus
extern "C" {
@@ -52,6 +54,7 @@ int usb_serial_putchar(uint8_t c);
int usb_serial_write(const void *buffer, uint32_t size);
int usb_serial_write_buffer_free(void);
void usb_serial_flush_output(void);
void usb_serial_flush_callback(void);
extern uint32_t usb_cdc_line_coding[2];
extern volatile uint32_t usb_cdc_line_rtsdtr_millis;
extern volatile uint32_t systick_millis_count;

Notiek ielāde…
Atcelt
Saglabāt