Adding USB MSD implementation to the HAL: Now, when you plug the Native USB port of the Arduino DUE to your PC, it will be detected as a composite USB device: One of the devices is a USB CDC (Serial port over USB) with native USB handshake (no more overflows!!) (set SERIAL_PORT to -1 to use it as main serial port) and also, a MSD (USB Mass Storage Device) will be detected, and the SD card present on the socket will be reflected as a Removable disk on your PC)
This commit is contained in:
@ -31,11 +31,9 @@
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#include <WString.h>
|
||||
#if SERIAL_PORT >= 0
|
||||
|
||||
#ifndef SERIAL_PORT
|
||||
#define SERIAL_PORT 0
|
||||
#endif
|
||||
#include <WString.h>
|
||||
|
||||
#define DEC 10
|
||||
#define HEX 16
|
||||
@ -135,4 +133,6 @@ private:
|
||||
|
||||
extern MarlinSerial customizedSerial;
|
||||
|
||||
#endif // SERIAL_PORT >= 0
|
||||
|
||||
#endif // MARLINSERIAL_DUE_H
|
||||
|
Reference in New Issue
Block a user