Skip to content

Commit 60c0542

Browse files
authored
Merge pull request arduino#111 from adafruit/pb-spi
Fix typedef syntax
2 parents 01ea159 + 4b57e88 commit 60c0542

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/SERCOM.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ typedef enum
156156
// but the enumeration is made regardless so user code doesn't need
157157
// ifdefs or lengthy comments explaining the different situations --
158158
// the clock-sourcing functions just compile to nothing on SAMD21.
159-
typedef enum SercomClockSource {
159+
typedef enum {
160160
SERCOM_CLOCK_SOURCE_FCPU, // F_CPU clock (GCLK0)
161161
SERCOM_CLOCK_SOURCE_48M, // 48 MHz peripheral clock (GCLK1) (standard)
162162
SERCOM_CLOCK_SOURCE_100M, // 100 MHz peripheral clock (GCLK2)
163163
SERCOM_CLOCK_SOURCE_32K, // XOSC32K clock (GCLK3)
164164
SERCOM_CLOCK_SOURCE_12M, // 12 MHz peripheral clock (GCLK4)
165165
SERCOM_CLOCK_SOURCE_NO_CHANGE // Leave clock source setting unchanged
166-
};
166+
} SercomClockSource;
167167

168168
class SERCOM
169169
{

0 commit comments

Comments
 (0)