EFM32 Make PeripheralPins.c configuration tables weakly defined to be overridable.

See issue "https://github.com/ARMmbed/mbed-os/issues/7424#issuecomment-404233377"
pull/7491/head
PHST 2018-07-12 10:53:34 +02:00
parent 38744b9e68
commit 95d78df962
9 changed files with 93 additions and 93 deletions

View File

@ -25,7 +25,7 @@
/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
const PinMap PinMap_ADC[] = {
const PinMap __attribute__((weak)) PinMap_ADC[] = {
#ifdef ADC0_BASE
{PD0, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH0},
{PD1, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH1},
@ -40,7 +40,7 @@ const PinMap PinMap_ADC[] = {
};
/************DAC***************/
const PinMap PinMap_DAC[] = {
const PinMap __attribute__((weak)) PinMap_DAC[] = {
#ifdef DAC0_BASE
{PB11, DAC_0, 0},
{PB12, DAC_0, 1},
@ -49,7 +49,7 @@ const PinMap PinMap_DAC[] = {
};
/************I2C SCL***********/
const PinMap PinMap_I2C_SCL[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
@ -71,7 +71,7 @@ const PinMap PinMap_I2C_SCL[] = {
};
/************I2C SDA***********/
const PinMap PinMap_I2C_SDA[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
@ -93,7 +93,7 @@ const PinMap PinMap_I2C_SDA[] = {
};
/************PWM***************/
const PinMap PinMap_PWM[] = {
const PinMap __attribute__((weak)) PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA8, PWM_CH0, 0},
@ -116,7 +116,7 @@ const PinMap PinMap_PWM[] = {
};
/*************SPI**************/
const PinMap PinMap_SPI_MOSI[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PE10, SPI_0, 0},
@ -138,7 +138,7 @@ const PinMap PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_MISO[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PE11, SPI_0, 0},
@ -160,7 +160,7 @@ const PinMap PinMap_SPI_MISO[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CLK[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PE12, SPI_0, 0},
@ -182,7 +182,7 @@ const PinMap PinMap_SPI_CLK[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CS[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PE13, SPI_0, 0},
@ -205,7 +205,7 @@ const PinMap PinMap_SPI_CS[] = {
};
/************UART**************/
const PinMap PinMap_UART_TX[] = {
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF6, UART_0, 0},
@ -253,7 +253,7 @@ const PinMap PinMap_UART_TX[] = {
{NC , NC , NC}
};
const PinMap PinMap_UART_RX[] = {
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF7, UART_0, 0},

View File

@ -24,7 +24,7 @@
#include "PeripheralPins.h"
/************ADC***************/
const PinMap PinMap_ADC[] = {
const PinMap __attribute__((weak)) PinMap_ADC[] = {
#ifdef ADC0_BASE
{PD4, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH4},
{PD5, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH5},
@ -35,7 +35,7 @@ const PinMap PinMap_ADC[] = {
};
/************I2C SCL***********/
const PinMap PinMap_I2C_SCL[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
@ -49,7 +49,7 @@ const PinMap PinMap_I2C_SCL[] = {
};
/************I2C SDA***********/
const PinMap PinMap_I2C_SDA[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
@ -62,7 +62,7 @@ const PinMap PinMap_I2C_SDA[] = {
{NC , NC , NC}
};
/************PWM***************/
const PinMap PinMap_PWM[] = {
const PinMap __attribute__((weak)) PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA0, PWM_CH0, 0},
@ -82,7 +82,7 @@ const PinMap PinMap_PWM[] = {
};
/*************SPI**************/
const PinMap PinMap_SPI_MOSI[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PE10, SPI_0, 0},
@ -100,7 +100,7 @@ const PinMap PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_MISO[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PE11, SPI_0, 0},
@ -118,7 +118,7 @@ const PinMap PinMap_SPI_MISO[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CLK[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PE12, SPI_0, 0},
@ -136,7 +136,7 @@ const PinMap PinMap_SPI_CLK[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CS[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PE13, SPI_0, 0},
@ -154,7 +154,7 @@ const PinMap PinMap_SPI_CS[] = {
};
/************UART**************/
const PinMap PinMap_UART_TX[] = {
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
#ifdef USART0_BASE
/* USART0 */
{PE10, USART_0, 0},
@ -179,7 +179,7 @@ const PinMap PinMap_UART_TX[] = {
{NC , NC , NC}
};
const PinMap PinMap_UART_RX[] = {
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
#ifdef USART0_BASE
/* USART0 */
{PE11, USART_0, 0},

View File

@ -25,7 +25,7 @@
/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
const PinMap PinMap_ADC[] = {
const PinMap __attribute__((weak)) PinMap_ADC[] = {
#ifdef ADC0_BASE
{PD0, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH0},
{PD1, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH1},
@ -40,7 +40,7 @@ const PinMap PinMap_ADC[] = {
};
/************DAC***************/
const PinMap PinMap_DAC[] = {
const PinMap __attribute__((weak)) PinMap_DAC[] = {
#ifdef DAC0_BASE
{PB11, DAC_0, 0},
{PB12, DAC_0, 1},
@ -49,7 +49,7 @@ const PinMap PinMap_DAC[] = {
};
/************I2C SCL***********/
const PinMap PinMap_I2C_SCL[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
@ -71,7 +71,7 @@ const PinMap PinMap_I2C_SCL[] = {
};
/************I2C SDA***********/
const PinMap PinMap_I2C_SDA[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
@ -93,7 +93,7 @@ const PinMap PinMap_I2C_SDA[] = {
};
/************PWM***************/
const PinMap PinMap_PWM[] = {
const PinMap __attribute__((weak)) PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA8, PWM_CH0, 0},
@ -116,7 +116,7 @@ const PinMap PinMap_PWM[] = {
};
/*************SPI**************/
const PinMap PinMap_SPI_MOSI[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PE10, SPI_0, 0},
@ -138,7 +138,7 @@ const PinMap PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_MISO[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PE11, SPI_0, 0},
@ -160,7 +160,7 @@ const PinMap PinMap_SPI_MISO[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CLK[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PE12, SPI_0, 0},
@ -182,7 +182,7 @@ const PinMap PinMap_SPI_CLK[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CS[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PE13, SPI_0, 0},
@ -205,7 +205,7 @@ const PinMap PinMap_SPI_CS[] = {
};
/************UART**************/
const PinMap PinMap_UART_TX[] = {
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF6, UART_0, 0},
@ -253,7 +253,7 @@ const PinMap PinMap_UART_TX[] = {
{NC , NC , NC}
};
const PinMap PinMap_UART_RX[] = {
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF7, UART_0, 0},

View File

@ -25,7 +25,7 @@
/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
const PinMap PinMap_ADC[] = {
const PinMap __attribute__((weak)) PinMap_ADC[] = {
#ifdef ADC0_BASE
{PA0, ADC_0, adcPosSelAPORT3XCH8},
{PA1, ADC_0, adcPosSelAPORT4XCH9},
@ -67,7 +67,7 @@ const PinMap PinMap_ADC[] = {
};
/************I2C SCL***********/
const PinMap PinMap_I2C_SCL[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
@ -107,7 +107,7 @@ const PinMap PinMap_I2C_SCL[] = {
};
/************I2C SDA***********/
const PinMap PinMap_I2C_SDA[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
@ -148,7 +148,7 @@ const PinMap PinMap_I2C_SDA[] = {
};
/************PWM***************/
const PinMap PinMap_PWM[] = {
const PinMap __attribute__((weak)) PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA0, PWM_CH0, 0},
@ -197,7 +197,7 @@ const PinMap PinMap_PWM[] = {
};
/*************SPI**************/
const PinMap PinMap_SPI_MOSI[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 0},
@ -239,7 +239,7 @@ const PinMap PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_MISO[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 31},
@ -282,7 +282,7 @@ const PinMap PinMap_SPI_MISO[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CLK[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 30},
@ -326,7 +326,7 @@ const PinMap PinMap_SPI_CLK[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CS[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 29},
@ -369,7 +369,7 @@ const PinMap PinMap_SPI_CS[] = {
};
/************UART**************/
const PinMap PinMap_UART_TX[] = {
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, USART_0, 0},
@ -414,7 +414,7 @@ const PinMap PinMap_UART_TX[] = {
{NC , NC , NC}
};
const PinMap PinMap_UART_RX[] = {
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, USART_0, 31},

View File

@ -25,7 +25,7 @@
/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
const PinMap PinMap_ADC[] = {
const PinMap __attribute__((weak)) PinMap_ADC[] = {
#ifdef ADC0_BASE
{PA0, ADC_0, adcPosSelAPORT3XCH8},
{PA1, ADC_0, adcPosSelAPORT4XCH9},
@ -67,7 +67,7 @@ const PinMap PinMap_ADC[] = {
};
/************I2C SCL***********/
const PinMap PinMap_I2C_SCL[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
@ -139,7 +139,7 @@ const PinMap PinMap_I2C_SCL[] = {
};
/************I2C SDA***********/
const PinMap PinMap_I2C_SDA[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
@ -212,7 +212,7 @@ const PinMap PinMap_I2C_SDA[] = {
};
/************PWM***************/
const PinMap PinMap_PWM[] = {
const PinMap __attribute__((weak)) PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA0, PWM_CH0, 0},
@ -261,7 +261,7 @@ const PinMap PinMap_PWM[] = {
};
/*************SPI**************/
const PinMap PinMap_SPI_MOSI[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 0},
@ -341,7 +341,7 @@ const PinMap PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_MISO[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 31},
@ -422,7 +422,7 @@ const PinMap PinMap_SPI_MISO[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CLK[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 30},
@ -504,7 +504,7 @@ const PinMap PinMap_SPI_CLK[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CS[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 29},
@ -585,7 +585,7 @@ const PinMap PinMap_SPI_CS[] = {
};
/************UART**************/
const PinMap PinMap_UART_TX[] = {
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, USART_0, 0},
@ -668,7 +668,7 @@ const PinMap PinMap_UART_TX[] = {
{NC , NC , NC}
};
const PinMap PinMap_UART_RX[] = {
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, USART_0, 31},

View File

@ -25,7 +25,7 @@
/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
const PinMap PinMap_ADC[] = {
const PinMap __attribute__((weak)) PinMap_ADC[] = {
#ifdef ADC0_BASE
{PD0, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH0},
{PD1, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH1},
@ -40,7 +40,7 @@ const PinMap PinMap_ADC[] = {
};
/************DAC***************/
const PinMap PinMap_DAC[] = {
const PinMap __attribute__((weak)) PinMap_DAC[] = {
#ifdef DAC0_BASE
{PB11, DAC_0, 0},
{PB12, DAC_0, 1},
@ -49,7 +49,7 @@ const PinMap PinMap_DAC[] = {
};
/************I2C SCL***********/
const PinMap PinMap_I2C_SCL[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
@ -71,7 +71,7 @@ const PinMap PinMap_I2C_SCL[] = {
};
/************I2C SDA***********/
const PinMap PinMap_I2C_SDA[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
@ -93,7 +93,7 @@ const PinMap PinMap_I2C_SDA[] = {
};
/************PWM***************/
const PinMap PinMap_PWM[] = {
const PinMap __attribute__((weak)) PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA8, PWM_CH0, 0},
@ -116,7 +116,7 @@ const PinMap PinMap_PWM[] = {
};
/*************SPI**************/
const PinMap PinMap_SPI_MOSI[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PE10, SPI_0, 0},
@ -138,7 +138,7 @@ const PinMap PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_MISO[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PE11, SPI_0, 0},
@ -160,7 +160,7 @@ const PinMap PinMap_SPI_MISO[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CLK[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PE12, SPI_0, 0},
@ -182,7 +182,7 @@ const PinMap PinMap_SPI_CLK[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CS[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PE13, SPI_0, 0},
@ -205,7 +205,7 @@ const PinMap PinMap_SPI_CS[] = {
};
/************UART**************/
const PinMap PinMap_UART_TX[] = {
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF6, UART_0, 0},
@ -253,7 +253,7 @@ const PinMap PinMap_UART_TX[] = {
{NC , NC , NC}
};
const PinMap PinMap_UART_RX[] = {
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF7, UART_0, 0},

View File

@ -24,7 +24,7 @@
#include "PeripheralPins.h"
/************ADC***************/
const PinMap PinMap_ADC[] = {
const PinMap __attribute__((weak)) PinMap_ADC[] = {
#ifdef ADC0_BASE
{PD4, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH4},
{PD5, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH5},
@ -35,7 +35,7 @@ const PinMap PinMap_ADC[] = {
};
/************I2C SCL***********/
const PinMap PinMap_I2C_SCL[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
@ -49,7 +49,7 @@ const PinMap PinMap_I2C_SCL[] = {
};
/************I2C SDA***********/
const PinMap PinMap_I2C_SDA[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
@ -62,7 +62,7 @@ const PinMap PinMap_I2C_SDA[] = {
{NC , NC , NC}
};
/************PWM***************/
const PinMap PinMap_PWM[] = {
const PinMap __attribute__((weak)) PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA0, PWM_CH0, 0},
@ -79,7 +79,7 @@ const PinMap PinMap_PWM[] = {
};
/*************SPI**************/
const PinMap PinMap_SPI_MOSI[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
#ifdef USART1_BASE
/* USART1 */
{PC0, SPI_1, 0},
@ -89,7 +89,7 @@ const PinMap PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_MISO[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
#ifdef USART1_BASE
/* USART1 */
{PC1, SPI_1, 0},
@ -99,7 +99,7 @@ const PinMap PinMap_SPI_MISO[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CLK[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
#ifdef USART1_BASE
/* USART1 */
{PB7, SPI_1, 0},
@ -109,7 +109,7 @@ const PinMap PinMap_SPI_CLK[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CS[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
#ifdef USART1_BASE
/* USART1 */
{PB8, SPI_1, 0},
@ -120,7 +120,7 @@ const PinMap PinMap_SPI_CS[] = {
};
/************UART**************/
const PinMap PinMap_UART_TX[] = {
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
#ifdef USART1_BASE
/* USART1 */
{PC0, USART_1, 0},
@ -137,7 +137,7 @@ const PinMap PinMap_UART_TX[] = {
{NC , NC , NC}
};
const PinMap PinMap_UART_RX[] = {
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
#ifdef USART1_BASE
/* USART1 */
{PC1, USART_1, 0},

View File

@ -25,7 +25,7 @@
/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
const PinMap PinMap_ADC[] = {
const PinMap __attribute__((weak)) PinMap_ADC[] = {
#ifdef ADC0_BASE
{PA0, ADC_0, adcPosSelAPORT3XCH8},
{PA1, ADC_0, adcPosSelAPORT4XCH9},
@ -67,7 +67,7 @@ const PinMap PinMap_ADC[] = {
};
/************I2C SCL***********/
const PinMap PinMap_I2C_SCL[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
@ -107,7 +107,7 @@ const PinMap PinMap_I2C_SCL[] = {
};
/************I2C SDA***********/
const PinMap PinMap_I2C_SDA[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
@ -148,7 +148,7 @@ const PinMap PinMap_I2C_SDA[] = {
};
/************PWM***************/
const PinMap PinMap_PWM[] = {
const PinMap __attribute__((weak)) PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA0, PWM_CH0, 0},
@ -197,7 +197,7 @@ const PinMap PinMap_PWM[] = {
};
/*************SPI**************/
const PinMap PinMap_SPI_MOSI[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 0},
@ -239,7 +239,7 @@ const PinMap PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_MISO[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 31},
@ -282,7 +282,7 @@ const PinMap PinMap_SPI_MISO[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CLK[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 30},
@ -326,7 +326,7 @@ const PinMap PinMap_SPI_CLK[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CS[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 29},
@ -369,7 +369,7 @@ const PinMap PinMap_SPI_CS[] = {
};
/************UART**************/
const PinMap PinMap_UART_TX[] = {
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, USART_0, 0},
@ -414,7 +414,7 @@ const PinMap PinMap_UART_TX[] = {
{NC , NC , NC}
};
const PinMap PinMap_UART_RX[] = {
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, USART_0, 31},

View File

@ -25,7 +25,7 @@
/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
const PinMap PinMap_ADC[] = {
const PinMap __attribute__((weak)) PinMap_ADC[] = {
#ifdef ADC0_BASE
{PA0, ADC_0, adcPosSelAPORT3XCH8},
{PA1, ADC_0, adcPosSelAPORT4XCH9},
@ -67,7 +67,7 @@ const PinMap PinMap_ADC[] = {
};
/************I2C SCL***********/
const PinMap PinMap_I2C_SCL[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
@ -140,7 +140,7 @@ const PinMap PinMap_I2C_SCL[] = {
};
/************I2C SDA***********/
const PinMap PinMap_I2C_SDA[] = {
const PinMap __attribute__((weak)) PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
@ -215,7 +215,7 @@ const PinMap PinMap_I2C_SDA[] = {
};
/************PWM***************/
const PinMap PinMap_PWM[] = {
const PinMap __attribute__((weak)) PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA0, PWM_CH0, 0},
@ -264,7 +264,7 @@ const PinMap PinMap_PWM[] = {
};
/*************SPI**************/
const PinMap PinMap_SPI_MOSI[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 0},
@ -344,7 +344,7 @@ const PinMap PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_MISO[] = {
const PinMap __attribute__((weak)) PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 31},
@ -425,7 +425,7 @@ const PinMap PinMap_SPI_MISO[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CLK[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 30},
@ -507,7 +507,7 @@ const PinMap PinMap_SPI_CLK[] = {
{NC , NC , NC}
};
const PinMap PinMap_SPI_CS[] = {
const PinMap __attribute__((weak)) PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, SPI_0, 29},
@ -588,7 +588,7 @@ const PinMap PinMap_SPI_CS[] = {
};
/************UART**************/
const PinMap PinMap_UART_TX[] = {
const PinMap __attribute__((weak)) PinMap_UART_TX[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, USART_0, 0},
@ -671,7 +671,7 @@ const PinMap PinMap_UART_TX[] = {
{NC , NC , NC}
};
const PinMap PinMap_UART_RX[] = {
const PinMap __attribute__((weak)) PinMap_UART_RX[] = {
#ifdef USART0_BASE
/* USART0 */
{PA0, USART_0, 31},