Skip to content

Commit a8dcf52

Browse files
Make PeripheralPins.c configuration tables weakly defined to be overridable for target EFM32GG11.
1 parent 95d78df commit a8dcf52

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG11/PeripheralPins.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/************ADC***************/
2727
/* The third "function" value is used to select the correct ADC channel */
2828
#if DEVICE_ANALOGIN
29-
const PinMap PinMap_ADC[] = {
29+
const PinMap __attribute__((weak)) PinMap_ADC[] = {
3030
#if ADC0_BASE
3131
{PA0, ADC_0, adcPosSelAPORT3XCH8},
3232
{PA1, ADC_0, adcPosSelAPORT4XCH9},
@@ -70,7 +70,7 @@ const PinMap PinMap_ADC[] = {
7070

7171
/************I2C SCL***********/
7272
#if DEVICE_I2C
73-
const PinMap PinMap_I2C_SCL[] = {
73+
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
7474
/* I2C0 */
7575
#ifdef I2C0_BASE
7676
{PA1, I2C_0, 0},
@@ -106,7 +106,7 @@ const PinMap PinMap_I2C_SCL[] = {
106106
};
107107

108108
/************I2C SDA***********/
109-
const PinMap PinMap_I2C_SDA[] = {
109+
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
110110
/* I2C0 */
111111
#ifdef I2C0_BASE
112112
{PA0, I2C_0, 0},
@@ -146,7 +146,7 @@ const PinMap PinMap_I2C_SDA[] = {
146146

147147
/************PWM***************/
148148
#if DEVICE_PWMOUT
149-
const PinMap PinMap_PWM[] = {
149+
const PinMap __attribute__((weak)) PinMap_PWM[] = {
150150
{PC13, PWM_CH0, 0},
151151
{PE10, PWM_CH0, 1},
152152
{PB0, PWM_CH0, 2},
@@ -189,7 +189,7 @@ const PinMap PinMap_PWM[] = {
189189

190190
/*************SPI**************/
191191
#if DEVICE_SPI
192-
const PinMap PinMap_SPI_MOSI[] = {
192+
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
193193
#ifdef USART0_BASE
194194
{PE10, SPI_0, 0},
195195
{PE7, SPI_0, 1},
@@ -245,7 +245,7 @@ const PinMap PinMap_SPI_MOSI[] = {
245245
{NC , NC , NC}
246246
};
247247

248-
const PinMap PinMap_SPI_MISO[] = {
248+
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
249249
#ifdef USART0_BASE
250250
{PE11, SPI_0, 0},
251251
{PE6, SPI_0, 1},
@@ -301,7 +301,7 @@ const PinMap PinMap_SPI_MISO[] = {
301301
{NC , NC , NC}
302302
};
303303

304-
const PinMap PinMap_SPI_CLK[] = {
304+
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
305305
#ifdef USART0_BASE
306306
/* USART0 */
307307
{PE12, SPI_0, 0},
@@ -358,7 +358,7 @@ const PinMap PinMap_SPI_CLK[] = {
358358
{NC , NC , NC}
359359
};
360360

361-
const PinMap PinMap_SPI_CS[] = {
361+
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
362362
#ifdef USART0_BASE
363363
/* USART0 */
364364
{PE13, SPI_0, 0},
@@ -416,7 +416,7 @@ const PinMap PinMap_SPI_CS[] = {
416416
};
417417

418418
/************UART**************/
419-
const PinMap PinMap_UART_TX[] = {
419+
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
420420
#ifdef USART0_BASE
421421
{PE10, USART_0, 0},
422422
{PE7, USART_0, 1},
@@ -474,7 +474,7 @@ const PinMap PinMap_UART_TX[] = {
474474
#endif
475475

476476
#if DEVICE_SERIAL
477-
const PinMap PinMap_UART_RX[] = {
477+
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
478478
#ifdef USART0_BASE
479479
{PE11, USART_0, 0},
480480
{PE6, USART_0, 1},
@@ -532,7 +532,7 @@ const PinMap PinMap_UART_RX[] = {
532532
#endif
533533

534534
#if DEVICE_CAN
535-
const PinMap PinMap_CAN_TX[] = {
535+
const PinMap __attribute__((weak)) PinMap_CAN_TX[] = {
536536
#ifdef CAN0_BASE
537537
{PC1, CAN_0, 0},
538538
{PF2, CAN_0, 1},
@@ -555,7 +555,7 @@ const PinMap PinMap_CAN_TX[] = {
555555
#endif
556556
};
557557

558-
const PinMap PinMap_CAN_RX[] = {
558+
const PinMap __attribute__((weak)) PinMap_CAN_RX[] = {
559559
#ifdef CAN0_BASE
560560
{PC0, CAN_0, 0},
561561
{PF0, CAN_0, 1},

0 commit comments

Comments
 (0)