Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for microcontrollers such as ESP32-S2/-S3/-C3 #620

Open
wants to merge 1 commit into
base: noetic-devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion rosserial_arduino/src/ros_lib/ArduinoHardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@
#define SERIAL_CLASS USBSerial
#else
#include <HardwareSerial.h> // Arduino AVR
#define SERIAL_CLASS HardwareSerial
#if defined(USE_USBCDC)
// ESP32-S2 ESP32-C3
#define SERIAL_CLASS USBCDC
#elif defined(USE_HWCDC)
// ESP32-S3
#define SERIAL_CLASS HWCDC
#else
#define SERIAL_CLASS HardwareSerial
#endif
#endif

class ArduinoHardware {
Expand Down