aboutsummaryrefslogtreecommitdiff
path: root/cores
AgeCommit message (Collapse)Author
2020-02-01Merge ArduinoCore-avr Release 1.8.2David Madison
2019-09-25Interrupt ordering for 32u2 and 16u2 MCU (#66)Manuel Reimer
* Interrupt ordering for 32u2 and 16u2 MCU * Added missing chip variants
2019-09-16Merge pull request #4 from awatterott/masterAlexander Entinger
No fixed value for USB power current.
2019-09-16Merge pull request #82 from luco5826/masterAlexander Entinger
Minor optimization in shiftOut function
2019-09-16Merge pull request #95 from jrowberg/masterAlexander Entinger
Cast pins to signed integers to avoid Wtype-limits compile warning
2019-09-16Merge pull request #92 from matthijskooijman/cdc-no-prototocol-atAlexander Entinger
Do not claim AT-protocol in CDC interface descriptor
2019-09-16Merge branch 'master' into patch-1Alexander Entinger
2019-09-16Merge pull request #33 from Pharap/add-placement-newAlexander Entinger
Add placement new operator
2019-09-16Merge pull request #64 from paulrnash/paulrnash-intellisenseAlexander Entinger
Add parameter names to common prototypes
2019-09-16Adding parenthesis around 'bitvalue' allowing correct macro expansion when ↵Alexander Entinger
using with ternary operator such as bitWrite(value, bit, some_computed_value == 5 ? 1: 0);'
2019-09-16Merge pull request #76 from dmadison/pluggable-unusedAlexander Entinger
Fix unused variable warning for non-pluggable USB in SendDescriptor
2019-09-04remove unnecessary if branchAkihiro YAMAZAKI
checking `length` in below while statement
2019-07-29Add null pointer test to String destructorJeff Rowberg
2019-06-08Do not claim AT-protocol in CDC interface descriptorMatthijs Kooijman
The CDC code presents itself as a virtual serial port. However, it also sets the "bFunctionProtocol" value to 1, which means it supports AT-commands, which is not actually the case. This might cause problems with some software, such as ModemManager. Originally, ModemManager would be very liberal with probing serial devices, using a blacklist to prevent probing non-modems such as Arduinos. Since version 1.7.990, it has supported a "strict" mode where it tries to be more restrained in what devices it probes. For CDC ACM devices, this means it will only probe devices that claim to support AT-commands. However, it also stopped applying the blacklist (intending to eventually remove the blacklist), meaning it would again probe Arduinos. This new strict policy is not the upstream default, but is enabled in Debian (since Buster) and Ubuntu (since bionic 18.04.2). The proper way to fix this, is to not claim AT comand support in the USB device descriptor, which is what this commit does. The Arduino will still show up as a virtual serial port, just not be probed by ModemManager in strict mode. For the commit that introduced the strict mode in ModemManager, see https://cgit.freedesktop.org/ModemManager/ModemManager/commit/src?id=ee570d44dc117dc69f23e83313dd877f76c5e3e0
2019-04-26Fixed shiftOut in MSBFIRST mode HIGH/LOWluca
2019-04-26Minor optimization in shiftOut functionluca
2019-03-09Change endpoint comments to use send/recvDavid Madison
Much better than in/out, since using the controller's perspective meant the inverted "in/out" was confusing
2019-03-09Switch 'available' return type to uint8_tDavid Madison
This function never returns an error (-1), and the number of bytes available will never be a negative number.
2019-03-09Moved send above recv in Xinput API headerDavid Madison
Logical reordering, no functional change
2019-02-21Add USB connected API supportDavid Madison
Returns true if the device USB is configured. Although will still return true if the device has been configured and the USB data pins disconnected...
2019-02-21Change receive endpoint to double-bankedDavid Madison
No reason not to take advantage of this feature, although with the interrupt in place I doubt it will be useful.
2019-02-21Use endpoint number defines for ep allocationDavid Madison
2019-02-21Add USB receive callback to USB ISRDavid Madison
Using the OUT endpoint interrupt
2019-02-21Add XInput USB APIDavid Madison
2019-02-19Change VID and PID in boards.txtDavid Madison
Better to set these where intended so they can be easily overridden if need be.
2019-02-19Add XInput endpoint number definesDavid Madison
2019-02-19Allocate XInput endpoint memoryDavid Madison
2019-02-19Modify endpoint numbers to be sequentialDavid Madison
Easier for the AVR to deal with the memory if the in/out numbers aren't paired.
2019-02-19Add XInput string descriptorsDavid Madison
2019-02-19Add XInput device and config descriptorsDavid Madison
2019-02-17Removed USB CDC SerialDavid Madison
This will compile but will NOT enumerate properly without a config descriptor. You've been warned...
2019-02-17Define descriptor return var in pluggable blockDavid Madison
Avoids unused variable warning if USB is enabled but pluggable USB is not
2019-02-15Replace Serial with nullDavid Madison
Allows sketches using Serial to compile but discards all data
2019-02-15Fix warning related to disabling Pluggable HIDDavid Madison
Unused if pluggable USB is not enabled. Should submit a PR to fix this in the main repo...
2019-02-15Disable Pluggable USBDavid Madison
Not compatible with XInput, which requires a static descriptor
2019-01-21Add parameters names to common prototypesPaul R. Nash
Putting the parameter names in these commonly used prototypes makes syntax help like VS Code's Intellisense work 99% more useful. Without them, it doesn't give you the names of the parameters and you have to remember the semantics yourself. :(
2019-01-04Remove commented out code for I2C interrupts on WInterrupts.cPaulo Costa
These are currently implemented by the Wire library, on twi.c
2018-12-11Add USBDevice.isSuspended()Gergely Nagy
Based on code originally by Rob van der Veer <rob.c.veer@gmail.com>, this adds USBDevice.isSuspended(), so user sketches can run custom code in their `loop` methods after checking if the device is suspended or not. Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2018-10-26Add noexcept specifier to placement new operatorPharap
The standard mandates that placement new should be have a noexcept specifier.
2018-08-18Prevent possible compiler warningPharap
Casting to void is a well known trick for prevening 'unused parameter' warnings.
2018-08-18Add placement new operatorPharap
2018-08-11Add `bitToggle` macro to complement `bitSet` etcShriramana Sharma
2017-12-18Fix MCUs without MPCM0 registerMartino Facchin
2017-11-13Fix flush hanging issueJohn Holman
Make write to UDR and clearing of TXC bit in flush() atomic to avoid race condition. Fixes #3745 (second different issue introduced later but discussed in the same issue)
2017-11-13Improve how TXCn bit is cleared in USCRnA registerJohn Holman
Preserve values of configuration bits MPCMn and U2Xn. Avoid setting other read-only bits for datasheet conformance. See #3745
2017-11-13Prevent buffer retransmission when transmit buffer is emptyJohn Holman
Moving the head buffer pointer and setting interrupt flag is now atomic in write(). Previously an intervening ISR could empty the buffer before the second ISR is triggered causing retransmission. Fixes: #3745 (original issue only)
2017-11-13Create macro to guard critical sections for large transmit buffersJohn Holman
New macro TX_BUFFER_ATOMIC makes the following code block atomic only if the transmit buffer is larger than 256 bytes. SREG is restored on completion. The macro is then used to simplify code for availableForWrite()
2017-11-13Always read key to check for new LUFA bootloaderScott Allen
Instead of checking for the NEW_LUFA_SIGNATURE once in program memory and then setting a flag which is used for further checks, a function is used that always checks program memory directly. If a flag is used, there's a slight chance that its location in RAM could fall on MAGIC_KEY_POS. In this case, an aborted USB auto-reset sequence may fail.
2017-11-13Don't use line coding to trigger USB auto-resetScott Allen
An auto-reset invoked using USB CDC is triggered by the port closing (when set to 1200 baud). Closing of the port is indicated by DTR going inactive. There is no need to have auto-reset invoked by a CDC_SET_LINE_CODING command. Only the CDC_SET_CONTROL_LINE_STATE command, which indicates a change in the state of DTR, should be used.
2017-11-13Save/restore the watchdog during USB auto-resetScott Allen
The state of the watchdog timer is saved during a USB auto-reset and then restored if the reset is aborted, in case the sketch is using the watchdog.