diff --git a/cores/arduino/SERCOM.h b/cores/arduino/SERCOM.h index e1262d40a6517937c33defcf99ad056276f08095..4f084a28d99afb38a27032b04ea21e20ab2328e7 100644 --- a/cores/arduino/SERCOM.h +++ b/cores/arduino/SERCOM.h @@ -32,8 +32,8 @@ typedef enum typedef enum { - 1_STOP_BIT = 0, - 2_STOP_BITS + STOP_BIT_1 = 0, + STOP_BITS_2 } SercomNumberStopBit; typedef enum @@ -44,11 +44,11 @@ typedef enum typedef enum { - 8_BITS = 0, - 9_BITS, - 5_BITS = 0x5u, - 6_BITS, - 7_BITS + BITS_8 = 0, + BITS_9, + BITS_5 = 0x5u, + BITS_6, + BITS_7 } SercomUartCharSize; typedef enum @@ -59,7 +59,7 @@ typedef enum PAD_3 } SercomRXPad; -Vtypedef enum +typedef enum { PAD_0 = 0, //Only for Intern Clock PAD_1 = 0, //Only for Extern Clock @@ -92,8 +92,8 @@ typedef enum typedef enum { - 8_BITS = 0, - 9_BITS = 1 + BITS_8 = 0, + BITS_9 = 1 } SercomSpiCharSize; typedef enum diff --git a/cores/arduino/SERCOMUart.cpp b/cores/arduino/SERCOMUart.cpp index ee3767e37b180bfdb174de62c6eaf6ee73ad9d3c..d58fd22c19775aa69727eed8dc386bbc9c53971f 100644 --- a/cores/arduino/SERCOMUart.cpp +++ b/cores/arduino/SERCOMUart.cpp @@ -81,10 +81,10 @@ SercomNumberStopBit extractNbStopBit(uint8_t config) { case STOP_BITE_1: default: - return 1_STOP_BIT; + return STOP_BIT_1; case STOP_BITE_2: - return 2_STOP_BITS; + return STOP_BITS_2 } }