Fix DUE incompatible enum type specification (#10017)

This commit is contained in:
Bob-the-Kuhn
2018-03-09 02:17:57 -06:00
committed by Scott Lahteine
parent 3c58ca181c
commit 67a17446f2
8 changed files with 36 additions and 25 deletions

View File

@@ -239,13 +239,13 @@ typedef struct {
uint8_t bDataBits;
} usb_cdc_line_coding_t;
//! Possible values of bCharFormat
enum cdc_char_format : char {
enum cdc_char_format {
CDC_STOP_BITS_1 = 0, //!< 1 stop bit
CDC_STOP_BITS_1_5 = 1, //!< 1.5 stop bits
CDC_STOP_BITS_2 = 2, //!< 2 stop bits
};
//! Possible values of bParityType
enum cdc_parity : char {
enum cdc_parity {
CDC_PAR_NONE = 0, //!< No parity
CDC_PAR_ODD = 1, //!< Odd parity
CDC_PAR_EVEN = 2, //!< Even parity