From 43b1fcd0e660f2925f9a2be2434a406c6df3f121 Mon Sep 17 00:00:00 2001
From: Jonathan BAUDIN <jonathan.baudin@atmel.com>
Date: Mon, 5 May 2014 15:17:57 +0200
Subject: [PATCH]  Correction about the names of few enumerations

---
 cores/arduino/SERCOM.h       | 20 ++++++++++----------
 cores/arduino/SERCOMUart.cpp |  4 ++--
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/cores/arduino/SERCOM.h b/cores/arduino/SERCOM.h
index e1262d40..4f084a28 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 ee3767e3..d58fd22c 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
 	}
 }
 
-- 
GitLab