aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBCore.h
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2015-07-30 15:33:37 +0200
committerMatthijs Kooijman <matthijs@stdin.nl>2015-07-31 14:06:19 +0200
commit31e0c941240f2b1d0e4f97d6e65d3a1ad66fbae5 (patch)
tree0d080cc0e9601e1dc453f4452d29a5fddf4b2232 /cores/arduino/USBCore.h
parentacb1a47a78ef96a5fcfbae9013dcc7d39e30292e (diff)
Add Serial_::readBreak() to process SEND_BREAK requests
This allows detecting when the USB host sends a break request and what the value of the request was. See the comments in USBAPI.h for details. This just modifies the avr core, not the sam core.
Diffstat (limited to 'cores/arduino/USBCore.h')
-rw-r--r--cores/arduino/USBCore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cores/arduino/USBCore.h b/cores/arduino/USBCore.h
index 66f8c05..eaeecef 100644
--- a/cores/arduino/USBCore.h
+++ b/cores/arduino/USBCore.h
@@ -57,6 +57,7 @@
#define CDC_SET_LINE_CODING 0x20
#define CDC_GET_LINE_CODING 0x21
#define CDC_SET_CONTROL_LINE_STATE 0x22
+#define CDC_SEND_BREAK 0x23
#define MSC_RESET 0xFF
#define MSC_GET_MAX_LUN 0xFE