Combine __AVR__ and USBCON for 2.0.x parity
This commit is contained in:
parent
c05c5d96d9
commit
5ce64f6d16
6 changed files with 12 additions and 12 deletions
|
|
@ -275,7 +275,7 @@
|
|||
/**
|
||||
* Serial
|
||||
*/
|
||||
#ifndef USBCON
|
||||
#if !(defined(__AVR__) && defined(USBCON))
|
||||
#if ENABLED(SERIAL_XON_XOFF) && RX_BUFFER_SIZE < 1024
|
||||
#error "SERIAL_XON_XOFF requires RX_BUFFER_SIZE >= 1024 for reliable transfers without drops."
|
||||
#elif RX_BUFFER_SIZE && (RX_BUFFER_SIZE < 2 || !IS_POWER_OF_2(RX_BUFFER_SIZE))
|
||||
|
|
@ -1281,7 +1281,7 @@ static_assert(1 >= 0
|
|||
/**
|
||||
* emergency-command parser
|
||||
*/
|
||||
#if ENABLED(EMERGENCY_PARSER) && defined(USBCON)
|
||||
#if ENABLED(EMERGENCY_PARSER) && defined(__AVR__) && defined(USBCON)
|
||||
#error "EMERGENCY_PARSER does not work on boards with AT90USB processors (USBCON)."
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue