23
23
#include "sam.h"
24
24
25
25
#ifdef __cplusplus
26
- extern "C" {
26
+ extern "C" {
27
27
#endif // __cplusplus
28
28
29
29
/* Definitions and types for pins */
@@ -62,10 +62,10 @@ typedef enum _ETCChannel
62
62
TCC1_CH1 = (1 <<8 )|(1 ),
63
63
TCC2_CH0 = (2 <<8 )|(0 ),
64
64
TCC2_CH1 = (2 <<8 )|(1 ),
65
- TC3_CH0 = (3 <<8 )|(0 ),
66
- TC3_CH1 = (3 <<8 )|(1 ),
67
- TC7_CH0 = (7 <<8 )|(0 ),
68
- TC7_CH1 = (7 <<8 )|(1 )
65
+ TC3_CH0 = (3 <<8 )|(0 ),
66
+ TC3_CH1 = (3 <<8 )|(1 ),
67
+ TC7_CH0 = (7 <<8 )|(0 ),
68
+ TC7_CH1 = (7 <<8 )|(1 )
69
69
} ETCChannel ;
70
70
71
71
extern const void * g_apTCInstances [TCC_INST_NUM + TC_INST_NUM ] ;
@@ -133,19 +133,19 @@ typedef enum _EExt_Interrupts
133
133
134
134
typedef enum _EPioType
135
135
{
136
- PIO_NOT_A_PIN = -1 , /* Not under control of a peripheral. */
137
- PIO_EXTINT , /* The pin is controlled by the associated signal of peripheral A. */
138
- PIO_ANALOG , /* The pin is controlled by the associated signal of peripheral B. */
139
- PIO_SERCOM , /* The pin is controlled by the associated signal of peripheral C. */
140
- PIO_SERCOM_ALT , /* The pin is controlled by the associated signal of peripheral D. */
141
- PIO_TIMER , /* The pin is controlled by the associated signal of peripheral E. */
142
- PIO_TIMER_ALT , /* The pin is controlled by the associated signal of peripheral F. */
143
- PIO_COM , /* The pin is controlled by the associated signal of peripheral G. */
144
- PIO_AC_CLK , /* The pin is controlled by the associated signal of peripheral H. */
145
- PIO_DIGITAL , /* The pin is controlled by PORT. */
146
- PIO_INPUT , /* The pin is controlled by PORT and is an input. */
147
- PIO_INPUT_PULLUP , /* The pin is controlled by PORT and is an input with internal pull-up resistor enabled. */
148
- PIO_OUTPUT , /* The pin is controlled by PORT and is an output. */
136
+ PIO_NOT_A_PIN = -1 , /* Not under control of a peripheral. */
137
+ PIO_EXTINT = 0 , /* The pin is controlled by the associated signal of peripheral A. */
138
+ PIO_ANALOG , /* The pin is controlled by the associated signal of peripheral B. */
139
+ PIO_SERCOM , /* The pin is controlled by the associated signal of peripheral C. */
140
+ PIO_SERCOM_ALT , /* The pin is controlled by the associated signal of peripheral D. */
141
+ PIO_TIMER , /* The pin is controlled by the associated signal of peripheral E. */
142
+ PIO_TIMER_ALT , /* The pin is controlled by the associated signal of peripheral F. */
143
+ PIO_COM , /* The pin is controlled by the associated signal of peripheral G. */
144
+ PIO_AC_CLK , /* The pin is controlled by the associated signal of peripheral H. */
145
+ PIO_DIGITAL , /* The pin is controlled by PORT. */
146
+ PIO_INPUT , /* The pin is controlled by PORT and is an input. */
147
+ PIO_INPUT_PULLUP , /* The pin is controlled by PORT and is an input with internal pull-up resistor enabled. */
148
+ PIO_OUTPUT , /* The pin is controlled by PORT and is an output. */
149
149
150
150
PIO_PWM = PIO_TIMER ,
151
151
PIO_PWM_ALT = PIO_TIMER_ALT ,
@@ -165,13 +165,13 @@ typedef enum _EPioType
165
165
/* Types used for the table below */
166
166
typedef struct _PinDescription
167
167
{
168
- EPortType ulPort ;
169
- uint32_t ulPin ;
170
- EPioType ulPinType ;
171
- uint32_t ulPinAttribute ;
172
- EAnalogChannel ulADCChannelNumber ; /* ADC Channel number in the SAM device */
173
- EPWMChannel ulPWMChannel ;
174
- ETCChannel ulTCChannel ;
168
+ EPortType ulPort ;
169
+ uint32_t ulPin ;
170
+ EPioType ulPinType ;
171
+ uint32_t ulPinAttribute ;
172
+ EAnalogChannel ulADCChannelNumber ; /* ADC Channel number in the SAM device */
173
+ EPWMChannel ulPWMChannel ;
174
+ ETCChannel ulTCChannel ;
175
175
EExt_Interrupts ulExtInt ;
176
176
} PinDescription ;
177
177
0 commit comments