Revision 3106e8cc modules/NUCLEO-F103RB/board.h

View differences:

modules/NUCLEO-F103RB/board.h
63 63
#define GPIOA_USART2_RX             3U
64 64
#define GPIOA_ARD_A2                4U
65 65
#define GPIOA_ADC1_IN4              4U
66
#define GPIOA_LED_GREEN             5U
67 66
#define GPIOA_ARD_D13               5U
67
#define GPIOA_LED_GREEN             5U
68 68
#define GPIOA_ARD_D12               6U
69 69
#define GPIOA_ARD_D11               7U
70 70
#define GPIOA_ARD_D7                8U
......
80 80
#define GPIOB_ADC1_IN8              0U
81 81
#define GPIOB_PIN1                  1U
82 82
#define GPIOB_PIN2                  2U
83
#define GPIOB_SWO                   3U
84 83
#define GPIOB_ARD_D3                3U
84
#define GPIOB_SWO                   3U
85 85
#define GPIOB_ARD_D5                4U
86 86
#define GPIOB_ARD_D4                5U
87 87
#define GPIOB_ARD_D10               6U
......
166 166
#define GPIOF_PIN13                 13U
167 167
#define GPIOF_PIN14                 14U
168 168
#define GPIOF_PIN15                 15U
169

  
170
/*
171
 * IO lines assignments.
172
 */
173
#define LINE_ARD_A0                 PAL_LINE(GPIOA, GPIOA_ARD_A0)
174
#define LINE_ADC1_IN0               PAL_LINE(GPIOA, GPIOA_ADC1_IN0)
175
#define LINE_ARD_A1                 PAL_LINE(GPIOA, GPIOA_ARD_A1)
176
#define LINE_ADC1_IN1               PAL_LINE(GPIOA, GPIOA_ADC1_IN1)
177
#define LINE_ARD_D1                 PAL_LINE(GPIOA, GPIOA_ARD_D1)
178
#define LINE_USART2_TX              PAL_LINE(GPIOA, GPIOA_USART2_TX)
179
#define LINE_ARD_D0                 PAL_LINE(GPIOA, GPIOA_ARD_D0)
180
#define LINE_USART2_RX              PAL_LINE(GPIOA, GPIOA_USART2_RX)
181
#define LINE_ARD_A2                 PAL_LINE(GPIOA, GPIOA_ARD_A2)
182
#define LINE_ADC1_IN4               PAL_LINE(GPIOA, GPIOA_ADC1_IN4)
183
#define LINE_ARD_D13                PAL_LINE(GPIOA, GPIOA_ARD_D13)
184
#define LINE_LED_GREEN              PAL_LINE(GPIOA, GPIOA_LED_GREEN)
185
#define LINE_ARD_D12                PAL_LINE(GPIOA, GPIOA_ARD_D12)
186
#define LINE_ARD_D11                PAL_LINE(GPIOA, GPIOA_ARD_D11)
187
#define LINE_ARD_D7                 PAL_LINE(GPIOA, GPIOA_ARD_D7)
188
#define LINE_ARD_D8                 PAL_LINE(GPIOA, GPIOA_ARD_D8)
189
#define LINE_ARD_D2                 PAL_LINE(GPIOA, GPIOA_ARD_D2)
190
#define LINE_SWDIO                  PAL_LINE(GPIOA, GPIOA_SWDIO)
191
#define LINE_SWCLK                  PAL_LINE(GPIOA, GPIOA_SWCLK)
192

  
193
#define LINE_ARD_A3                 PAL_LINE(GPIOB, GPIOB_ARD_A3)
194
#define LINE_ADC1_IN8               PAL_LINE(GPIOB, GPIOB_ADC1_IN8)
195
#define LINE_ARD_D3                 PAL_LINE(GPIOB, GPIOB_ARD_D3)
196
#define LINE_SWO                    PAL_LINE(GPIOB, GPIOB_SWO)
197
#define LINE_ARD_D5                 PAL_LINE(GPIOB, GPIOB_ARD_D5)
198
#define LINE_ARD_D4                 PAL_LINE(GPIOB, GPIOB_ARD_D4)
199
#define LINE_ARD_D10                PAL_LINE(GPIOB, GPIOB_ARD_D10)
200
#define LINE_ARD_D15                PAL_LINE(GPIOB, GPIOB_ARD_D15)
201
#define LINE_ARD_D14                PAL_LINE(GPIOB, GPIOB_ARD_D14)
202
#define LINE_ARD_D6                 PAL_LINE(GPIOB, GPIOB_ARD_D6)
203

  
204
#define LINE_ARD_A5                 PAL_LINE(GPIOC, GPIOC_ARD_A5)
205
#define LINE_ADC1_IN11              PAL_LINE(GPIOC, GPIOC_ADC1_IN11)
206
#define LINE_ARD_A4                 PAL_LINE(GPIOC, GPIOC_ARD_A4)
207
#define LINE_ADC1_IN10              PAL_LINE(GPIOC, GPIOC_ADC1_IN10)
208
#define LINE_ARD_D9                 PAL_LINE(GPIOC, GPIOC_ARD_D9)
209
#define LINE_BUTTON                 PAL_LINE(GPIOC, GPIOC_BUTTON)
210

  
211
#define LINE_OSC_IN                 PAL_LINE(GPIOD, GPIOH_OSC_IN)
212
#define LINE_OSC_OUT                PAL_LINE(GPIOD, GPIOH_OSC_OUT)
213

  
214

  
169 215
/*
170 216
 * I/O ports initial setup, this configuration is established soon after reset
171 217
 * in the initialization code.

Also available in: Unified diff