Skip to content
Snippets Groups Projects
Commit 43b1fcd0 authored by Jonathan BAUDIN's avatar Jonathan BAUDIN
Browse files

Correction about the names of few enumerations

parent f478a172
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment