Skip to content

Commit 72869a2

Browse files
steinerphilippCruz Monrreal II
authored andcommitted
Place "MBED_WEAK" for IAR-Toolchain before the type.
1 parent fdbd676 commit 72869a2

File tree

10 files changed

+105
-105
lines changed

10 files changed

+105
-105
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG/PeripheralPins.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/************ADC***************/
2828
/* The third "function" value is used to select the correct ADC channel */
29-
const PinMap MBED_WEAK PinMap_ADC[] = {
29+
MBED_WEAK const PinMap PinMap_ADC[] = {
3030
#ifdef ADC0_BASE
3131
{PD0, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH0},
3232
{PD1, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH1},
@@ -41,7 +41,7 @@ const PinMap MBED_WEAK PinMap_ADC[] = {
4141
};
4242

4343
/************DAC***************/
44-
const PinMap MBED_WEAK PinMap_DAC[] = {
44+
MBED_WEAK const PinMap PinMap_DAC[] = {
4545
#ifdef DAC0_BASE
4646
{PB11, DAC_0, 0},
4747
{PB12, DAC_0, 1},
@@ -50,7 +50,7 @@ const PinMap MBED_WEAK PinMap_DAC[] = {
5050
};
5151

5252
/************I2C SCL***********/
53-
const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
53+
MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
5454
#ifdef I2C0_BASE
5555
/* I2C0 */
5656
{PA1, I2C_0, 0},
@@ -72,7 +72,7 @@ const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
7272
};
7373

7474
/************I2C SDA***********/
75-
const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
75+
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
7676
#ifdef I2C0_BASE
7777
/* I2C0 */
7878
{PA0, I2C_0, 0},
@@ -94,7 +94,7 @@ const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
9494
};
9595

9696
/************PWM***************/
97-
const PinMap MBED_WEAK PinMap_PWM[] = {
97+
MBED_WEAK const PinMap PinMap_PWM[] = {
9898
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
9999
/* PWM0 */
100100
{PA8, PWM_CH0, 0},
@@ -117,7 +117,7 @@ const PinMap MBED_WEAK PinMap_PWM[] = {
117117
};
118118

119119
/*************SPI**************/
120-
const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
120+
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
121121
#ifdef USART0_BASE
122122
/* USART0 */
123123
{PE10, SPI_0, 0},
@@ -139,7 +139,7 @@ const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
139139
{NC , NC , NC}
140140
};
141141

142-
const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
142+
MBED_WEAK const PinMap PinMap_SPI_MISO[] = {
143143
#ifdef USART0_BASE
144144
/* USART0 */
145145
{PE11, SPI_0, 0},
@@ -161,7 +161,7 @@ const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
161161
{NC , NC , NC}
162162
};
163163

164-
const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
164+
MBED_WEAK const PinMap PinMap_SPI_CLK[] = {
165165
#ifdef USART0_BASE
166166
/* USART0 */
167167
{PE12, SPI_0, 0},
@@ -183,7 +183,7 @@ const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
183183
{NC , NC , NC}
184184
};
185185

186-
const PinMap MBED_WEAK PinMap_SPI_CS[] = {
186+
MBED_WEAK const PinMap PinMap_SPI_CS[] = {
187187
#ifdef USART0_BASE
188188
/* USART0 */
189189
{PE13, SPI_0, 0},
@@ -206,7 +206,7 @@ const PinMap MBED_WEAK PinMap_SPI_CS[] = {
206206
};
207207

208208
/************UART**************/
209-
const PinMap MBED_WEAK PinMap_UART_TX[] = {
209+
MBED_WEAK const PinMap PinMap_UART_TX[] = {
210210
#ifdef UART0_BASE
211211
/* UART0 */
212212
{PF6, UART_0, 0},
@@ -254,7 +254,7 @@ const PinMap MBED_WEAK PinMap_UART_TX[] = {
254254
{NC , NC , NC}
255255
};
256256

257-
const PinMap MBED_WEAK PinMap_UART_RX[] = {
257+
MBED_WEAK const PinMap PinMap_UART_RX[] = {
258258
#ifdef UART0_BASE
259259
/* UART0 */
260260
{PF7, UART_0, 0},

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG11/PeripheralPins.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/************ADC***************/
2828
/* The third "function" value is used to select the correct ADC channel */
2929
#if DEVICE_ANALOGIN
30-
const PinMap MBED_WEAK PinMap_ADC[] = {
30+
MBED_WEAK const PinMap PinMap_ADC[] = {
3131
#if ADC0_BASE
3232
{PA0, ADC_0, adcPosSelAPORT3XCH8},
3333
{PA1, ADC_0, adcPosSelAPORT4XCH9},
@@ -71,7 +71,7 @@ const PinMap MBED_WEAK PinMap_ADC[] = {
7171

7272
/************I2C SCL***********/
7373
#if DEVICE_I2C
74-
const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
74+
MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
7575
/* I2C0 */
7676
#ifdef I2C0_BASE
7777
{PA1, I2C_0, 0},
@@ -107,7 +107,7 @@ const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
107107
};
108108

109109
/************I2C SDA***********/
110-
const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
110+
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
111111
/* I2C0 */
112112
#ifdef I2C0_BASE
113113
{PA0, I2C_0, 0},
@@ -147,7 +147,7 @@ const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
147147

148148
/************PWM***************/
149149
#if DEVICE_PWMOUT
150-
const PinMap MBED_WEAK PinMap_PWM[] = {
150+
MBED_WEAK const PinMap PinMap_PWM[] = {
151151
{PC13, PWM_CH0, 0},
152152
{PE10, PWM_CH0, 1},
153153
{PB0, PWM_CH0, 2},
@@ -190,7 +190,7 @@ const PinMap MBED_WEAK PinMap_PWM[] = {
190190

191191
/*************SPI**************/
192192
#if DEVICE_SPI
193-
const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
193+
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
194194
#ifdef USART0_BASE
195195
{PE10, SPI_0, 0},
196196
{PE7, SPI_0, 1},
@@ -246,7 +246,7 @@ const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
246246
{NC , NC , NC}
247247
};
248248

249-
const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
249+
MBED_WEAK const PinMap PinMap_SPI_MISO[] = {
250250
#ifdef USART0_BASE
251251
{PE11, SPI_0, 0},
252252
{PE6, SPI_0, 1},
@@ -302,7 +302,7 @@ const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
302302
{NC , NC , NC}
303303
};
304304

305-
const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
305+
MBED_WEAK const PinMap PinMap_SPI_CLK[] = {
306306
#ifdef USART0_BASE
307307
/* USART0 */
308308
{PE12, SPI_0, 0},
@@ -359,7 +359,7 @@ const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
359359
{NC , NC , NC}
360360
};
361361

362-
const PinMap MBED_WEAK PinMap_SPI_CS[] = {
362+
MBED_WEAK const PinMap PinMap_SPI_CS[] = {
363363
#ifdef USART0_BASE
364364
/* USART0 */
365365
{PE13, SPI_0, 0},
@@ -417,7 +417,7 @@ const PinMap MBED_WEAK PinMap_SPI_CS[] = {
417417
};
418418

419419
/************UART**************/
420-
const PinMap MBED_WEAK PinMap_UART_TX[] = {
420+
MBED_WEAK const PinMap PinMap_UART_TX[] = {
421421
#ifdef USART0_BASE
422422
{PE10, USART_0, 0},
423423
{PE7, USART_0, 1},
@@ -475,7 +475,7 @@ const PinMap MBED_WEAK PinMap_UART_TX[] = {
475475
#endif
476476

477477
#if DEVICE_SERIAL
478-
const PinMap MBED_WEAK PinMap_UART_RX[] = {
478+
MBED_WEAK const PinMap PinMap_UART_RX[] = {
479479
#ifdef USART0_BASE
480480
{PE11, USART_0, 0},
481481
{PE6, USART_0, 1},
@@ -533,7 +533,7 @@ const PinMap MBED_WEAK PinMap_UART_RX[] = {
533533
#endif
534534

535535
#if DEVICE_CAN
536-
const PinMap MBED_WEAK PinMap_CAN_TX[] = {
536+
MBED_WEAK const PinMap PinMap_CAN_TX[] = {
537537
#ifdef CAN0_BASE
538538
{PC1, CAN_0, 0},
539539
{PF2, CAN_0, 1},
@@ -556,7 +556,7 @@ const PinMap MBED_WEAK PinMap_CAN_TX[] = {
556556
#endif
557557
};
558558

559-
const PinMap MBED_WEAK PinMap_CAN_RX[] = {
559+
MBED_WEAK const PinMap PinMap_CAN_RX[] = {
560560
#ifdef CAN0_BASE
561561
{PC0, CAN_0, 0},
562562
{PF0, CAN_0, 1},

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG/PeripheralPins.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "mbed_toolchain.h"
2626

2727
/************ADC***************/
28-
const PinMap MBED_WEAK PinMap_ADC[] = {
28+
MBED_WEAK const PinMap PinMap_ADC[] = {
2929
#ifdef ADC0_BASE
3030
{PD4, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH4},
3131
{PD5, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH5},
@@ -36,7 +36,7 @@ const PinMap MBED_WEAK PinMap_ADC[] = {
3636
};
3737

3838
/************I2C SCL***********/
39-
const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
39+
MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
4040
#ifdef I2C0_BASE
4141
/* I2C0 */
4242
{PA1, I2C_0, 0},
@@ -50,7 +50,7 @@ const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
5050
};
5151

5252
/************I2C SDA***********/
53-
const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
53+
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
5454
#ifdef I2C0_BASE
5555
/* I2C0 */
5656
{PA0, I2C_0, 0},
@@ -63,7 +63,7 @@ const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
6363
{NC , NC , NC}
6464
};
6565
/************PWM***************/
66-
const PinMap MBED_WEAK PinMap_PWM[] = {
66+
MBED_WEAK const PinMap PinMap_PWM[] = {
6767
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
6868
/* PWM0 */
6969
{PA0, PWM_CH0, 0},
@@ -83,7 +83,7 @@ const PinMap MBED_WEAK PinMap_PWM[] = {
8383
};
8484

8585
/*************SPI**************/
86-
const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
86+
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
8787
#ifdef USART0_BASE
8888
/* USART0 */
8989
{PE10, SPI_0, 0},
@@ -101,7 +101,7 @@ const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
101101
{NC , NC , NC}
102102
};
103103

104-
const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
104+
MBED_WEAK const PinMap PinMap_SPI_MISO[] = {
105105
#ifdef USART0_BASE
106106
/* USART0 */
107107
{PE11, SPI_0, 0},
@@ -119,7 +119,7 @@ const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
119119
{NC , NC , NC}
120120
};
121121

122-
const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
122+
MBED_WEAK const PinMap PinMap_SPI_CLK[] = {
123123
#ifdef USART0_BASE
124124
/* USART0 */
125125
{PE12, SPI_0, 0},
@@ -137,7 +137,7 @@ const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
137137
{NC , NC , NC}
138138
};
139139

140-
const PinMap MBED_WEAK PinMap_SPI_CS[] = {
140+
MBED_WEAK const PinMap PinMap_SPI_CS[] = {
141141
#ifdef USART0_BASE
142142
/* USART0 */
143143
{PE13, SPI_0, 0},
@@ -155,7 +155,7 @@ const PinMap MBED_WEAK PinMap_SPI_CS[] = {
155155
};
156156

157157
/************UART**************/
158-
const PinMap MBED_WEAK PinMap_UART_TX[] = {
158+
MBED_WEAK const PinMap PinMap_UART_TX[] = {
159159
#ifdef USART0_BASE
160160
/* USART0 */
161161
{PE10, USART_0, 0},
@@ -180,7 +180,7 @@ const PinMap MBED_WEAK PinMap_UART_TX[] = {
180180
{NC , NC , NC}
181181
};
182182

183-
const PinMap MBED_WEAK PinMap_UART_RX[] = {
183+
MBED_WEAK const PinMap PinMap_UART_RX[] = {
184184
#ifdef USART0_BASE
185185
/* USART0 */
186186
{PE11, USART_0, 0},

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG/PeripheralPins.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/************ADC***************/
2828
/* The third "function" value is used to select the correct ADC channel */
29-
const PinMap MBED_WEAK PinMap_ADC[] = {
29+
MBED_WEAK const PinMap PinMap_ADC[] = {
3030
#ifdef ADC0_BASE
3131
{PD0, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH0},
3232
{PD1, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH1},
@@ -41,7 +41,7 @@ const PinMap MBED_WEAK PinMap_ADC[] = {
4141
};
4242

4343
/************DAC***************/
44-
const PinMap MBED_WEAK PinMap_DAC[] = {
44+
MBED_WEAK const PinMap PinMap_DAC[] = {
4545
#ifdef DAC0_BASE
4646
{PB11, DAC_0, 0},
4747
{PB12, DAC_0, 1},
@@ -50,7 +50,7 @@ const PinMap MBED_WEAK PinMap_DAC[] = {
5050
};
5151

5252
/************I2C SCL***********/
53-
const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
53+
MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
5454
#ifdef I2C0_BASE
5555
/* I2C0 */
5656
{PA1, I2C_0, 0},
@@ -72,7 +72,7 @@ const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
7272
};
7373

7474
/************I2C SDA***********/
75-
const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
75+
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
7676
#ifdef I2C0_BASE
7777
/* I2C0 */
7878
{PA0, I2C_0, 0},
@@ -94,7 +94,7 @@ const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
9494
};
9595

9696
/************PWM***************/
97-
const PinMap MBED_WEAK PinMap_PWM[] = {
97+
MBED_WEAK const PinMap PinMap_PWM[] = {
9898
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
9999
/* PWM0 */
100100
{PA8, PWM_CH0, 0},
@@ -117,7 +117,7 @@ const PinMap MBED_WEAK PinMap_PWM[] = {
117117
};
118118

119119
/*************SPI**************/
120-
const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
120+
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
121121
#ifdef USART0_BASE
122122
/* USART0 */
123123
{PE10, SPI_0, 0},
@@ -139,7 +139,7 @@ const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
139139
{NC , NC , NC}
140140
};
141141

142-
const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
142+
MBED_WEAK const PinMap PinMap_SPI_MISO[] = {
143143
#ifdef USART0_BASE
144144
/* USART0 */
145145
{PE11, SPI_0, 0},
@@ -161,7 +161,7 @@ const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
161161
{NC , NC , NC}
162162
};
163163

164-
const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
164+
MBED_WEAK const PinMap PinMap_SPI_CLK[] = {
165165
#ifdef USART0_BASE
166166
/* USART0 */
167167
{PE12, SPI_0, 0},
@@ -183,7 +183,7 @@ const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
183183
{NC , NC , NC}
184184
};
185185

186-
const PinMap MBED_WEAK PinMap_SPI_CS[] = {
186+
MBED_WEAK const PinMap PinMap_SPI_CS[] = {
187187
#ifdef USART0_BASE
188188
/* USART0 */
189189
{PE13, SPI_0, 0},
@@ -206,7 +206,7 @@ const PinMap MBED_WEAK PinMap_SPI_CS[] = {
206206
};
207207

208208
/************UART**************/
209-
const PinMap MBED_WEAK PinMap_UART_TX[] = {
209+
MBED_WEAK const PinMap PinMap_UART_TX[] = {
210210
#ifdef UART0_BASE
211211
/* UART0 */
212212
{PF6, UART_0, 0},
@@ -254,7 +254,7 @@ const PinMap MBED_WEAK PinMap_UART_TX[] = {
254254
{NC , NC , NC}
255255
};
256256

257-
const PinMap MBED_WEAK PinMap_UART_RX[] = {
257+
MBED_WEAK const PinMap PinMap_UART_RX[] = {
258258
#ifdef UART0_BASE
259259
/* UART0 */
260260
{PF7, UART_0, 0},

0 commit comments

Comments
 (0)