Skip to content

Commit

Permalink
Place "MBED_WEAK" for IAR-Toolchain before the type.
Browse files Browse the repository at this point in the history
  • Loading branch information
steinerphilipp committed Jul 17, 2018
1 parent de266d8 commit 804edd5
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
const PinMap MBED_WEAK PinMap_ADC[] = {
MBED_WEAK const PinMap PinMap_ADC[] = {
#ifdef ADC0_BASE
{PD0, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH0},
{PD1, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH1},
Expand All @@ -41,7 +41,7 @@ const PinMap MBED_WEAK PinMap_ADC[] = {
};

/************DAC***************/
const PinMap MBED_WEAK PinMap_DAC[] = {
MBED_WEAK const PinMap PinMap_DAC[] = {
#ifdef DAC0_BASE
{PB11, DAC_0, 0},
{PB12, DAC_0, 1},
Expand All @@ -50,7 +50,7 @@ const PinMap MBED_WEAK PinMap_DAC[] = {
};

/************I2C SCL***********/
const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
Expand All @@ -72,7 +72,7 @@ const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
};

/************I2C SDA***********/
const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
Expand All @@ -94,7 +94,7 @@ const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
};

/************PWM***************/
const PinMap MBED_WEAK PinMap_PWM[] = {
MBED_WEAK const PinMap PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA8, PWM_CH0, 0},
Expand All @@ -117,7 +117,7 @@ const PinMap MBED_WEAK PinMap_PWM[] = {
};

/*************SPI**************/
const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PE10, SPI_0, 0},
Expand All @@ -139,7 +139,7 @@ const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
MBED_WEAK const PinMap PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PE11, SPI_0, 0},
Expand All @@ -161,7 +161,7 @@ const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
MBED_WEAK const PinMap PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PE12, SPI_0, 0},
Expand All @@ -183,7 +183,7 @@ const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_CS[] = {
MBED_WEAK const PinMap PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PE13, SPI_0, 0},
Expand All @@ -206,7 +206,7 @@ const PinMap MBED_WEAK PinMap_SPI_CS[] = {
};

/************UART**************/
const PinMap MBED_WEAK PinMap_UART_TX[] = {
MBED_WEAK const PinMap PinMap_UART_TX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF6, UART_0, 0},
Expand Down Expand Up @@ -254,7 +254,7 @@ const PinMap MBED_WEAK PinMap_UART_TX[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_UART_RX[] = {
MBED_WEAK const PinMap PinMap_UART_RX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF7, UART_0, 0},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
#if DEVICE_ANALOGIN
const PinMap MBED_WEAK PinMap_ADC[] = {
MBED_WEAK const PinMap PinMap_ADC[] = {
#if ADC0_BASE
{PA0, ADC_0, adcPosSelAPORT3XCH8},
{PA1, ADC_0, adcPosSelAPORT4XCH9},
Expand Down Expand Up @@ -71,7 +71,7 @@ const PinMap MBED_WEAK PinMap_ADC[] = {

/************I2C SCL***********/
#if DEVICE_I2C
const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
/* I2C0 */
#ifdef I2C0_BASE
{PA1, I2C_0, 0},
Expand Down Expand Up @@ -107,7 +107,7 @@ const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
};

/************I2C SDA***********/
const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
/* I2C0 */
#ifdef I2C0_BASE
{PA0, I2C_0, 0},
Expand Down Expand Up @@ -147,7 +147,7 @@ const PinMap MBED_WEAK PinMap_I2C_SDA[] = {

/************PWM***************/
#if DEVICE_PWMOUT
const PinMap MBED_WEAK PinMap_PWM[] = {
MBED_WEAK const PinMap PinMap_PWM[] = {
{PC13, PWM_CH0, 0},
{PE10, PWM_CH0, 1},
{PB0, PWM_CH0, 2},
Expand Down Expand Up @@ -190,7 +190,7 @@ const PinMap MBED_WEAK PinMap_PWM[] = {

/*************SPI**************/
#if DEVICE_SPI
const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
{PE10, SPI_0, 0},
{PE7, SPI_0, 1},
Expand Down Expand Up @@ -246,7 +246,7 @@ const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
MBED_WEAK const PinMap PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
{PE11, SPI_0, 0},
{PE6, SPI_0, 1},
Expand Down Expand Up @@ -302,7 +302,7 @@ const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
MBED_WEAK const PinMap PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PE12, SPI_0, 0},
Expand Down Expand Up @@ -359,7 +359,7 @@ const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_CS[] = {
MBED_WEAK const PinMap PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PE13, SPI_0, 0},
Expand Down Expand Up @@ -417,7 +417,7 @@ const PinMap MBED_WEAK PinMap_SPI_CS[] = {
};

/************UART**************/
const PinMap MBED_WEAK PinMap_UART_TX[] = {
MBED_WEAK const PinMap PinMap_UART_TX[] = {
#ifdef USART0_BASE
{PE10, USART_0, 0},
{PE7, USART_0, 1},
Expand Down Expand Up @@ -475,7 +475,7 @@ const PinMap MBED_WEAK PinMap_UART_TX[] = {
#endif

#if DEVICE_SERIAL
const PinMap MBED_WEAK PinMap_UART_RX[] = {
MBED_WEAK const PinMap PinMap_UART_RX[] = {
#ifdef USART0_BASE
{PE11, USART_0, 0},
{PE6, USART_0, 1},
Expand Down Expand Up @@ -533,7 +533,7 @@ const PinMap MBED_WEAK PinMap_UART_RX[] = {
#endif

#if DEVICE_CAN
const PinMap MBED_WEAK PinMap_CAN_TX[] = {
MBED_WEAK const PinMap PinMap_CAN_TX[] = {
#ifdef CAN0_BASE
{PC1, CAN_0, 0},
{PF2, CAN_0, 1},
Expand All @@ -556,7 +556,7 @@ const PinMap MBED_WEAK PinMap_CAN_TX[] = {
#endif
};

const PinMap MBED_WEAK PinMap_CAN_RX[] = {
MBED_WEAK const PinMap PinMap_CAN_RX[] = {
#ifdef CAN0_BASE
{PC0, CAN_0, 0},
{PF0, CAN_0, 1},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "mbed_toolchain.h"

/************ADC***************/
const PinMap MBED_WEAK PinMap_ADC[] = {
MBED_WEAK const PinMap PinMap_ADC[] = {
#ifdef ADC0_BASE
{PD4, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH4},
{PD5, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH5},
Expand All @@ -36,7 +36,7 @@ const PinMap MBED_WEAK PinMap_ADC[] = {
};

/************I2C SCL***********/
const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
Expand All @@ -50,7 +50,7 @@ const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
};

/************I2C SDA***********/
const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
Expand All @@ -63,7 +63,7 @@ const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
{NC , NC , NC}
};
/************PWM***************/
const PinMap MBED_WEAK PinMap_PWM[] = {
MBED_WEAK const PinMap PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA0, PWM_CH0, 0},
Expand All @@ -83,7 +83,7 @@ const PinMap MBED_WEAK PinMap_PWM[] = {
};

/*************SPI**************/
const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PE10, SPI_0, 0},
Expand All @@ -101,7 +101,7 @@ const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
MBED_WEAK const PinMap PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PE11, SPI_0, 0},
Expand All @@ -119,7 +119,7 @@ const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
MBED_WEAK const PinMap PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PE12, SPI_0, 0},
Expand All @@ -137,7 +137,7 @@ const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_CS[] = {
MBED_WEAK const PinMap PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PE13, SPI_0, 0},
Expand All @@ -155,7 +155,7 @@ const PinMap MBED_WEAK PinMap_SPI_CS[] = {
};

/************UART**************/
const PinMap MBED_WEAK PinMap_UART_TX[] = {
MBED_WEAK const PinMap PinMap_UART_TX[] = {
#ifdef USART0_BASE
/* USART0 */
{PE10, USART_0, 0},
Expand All @@ -180,7 +180,7 @@ const PinMap MBED_WEAK PinMap_UART_TX[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_UART_RX[] = {
MBED_WEAK const PinMap PinMap_UART_RX[] = {
#ifdef USART0_BASE
/* USART0 */
{PE11, USART_0, 0},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/************ADC***************/
/* The third "function" value is used to select the correct ADC channel */
const PinMap MBED_WEAK PinMap_ADC[] = {
MBED_WEAK const PinMap PinMap_ADC[] = {
#ifdef ADC0_BASE
{PD0, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH0},
{PD1, ADC_0, ADC_SINGLECTRL_INPUTSEL_CH1},
Expand All @@ -41,7 +41,7 @@ const PinMap MBED_WEAK PinMap_ADC[] = {
};

/************DAC***************/
const PinMap MBED_WEAK PinMap_DAC[] = {
MBED_WEAK const PinMap PinMap_DAC[] = {
#ifdef DAC0_BASE
{PB11, DAC_0, 0},
{PB12, DAC_0, 1},
Expand All @@ -50,7 +50,7 @@ const PinMap MBED_WEAK PinMap_DAC[] = {
};

/************I2C SCL***********/
const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA1, I2C_0, 0},
Expand All @@ -72,7 +72,7 @@ const PinMap MBED_WEAK PinMap_I2C_SCL[] = {
};

/************I2C SDA***********/
const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
#ifdef I2C0_BASE
/* I2C0 */
{PA0, I2C_0, 0},
Expand All @@ -94,7 +94,7 @@ const PinMap MBED_WEAK PinMap_I2C_SDA[] = {
};

/************PWM***************/
const PinMap MBED_WEAK PinMap_PWM[] = {
MBED_WEAK const PinMap PinMap_PWM[] = {
#if defined(TIMER_ROUTE_CC0PEN) || defined(TIMER_ROUTEPEN_CC0PEN)
/* PWM0 */
{PA8, PWM_CH0, 0},
Expand All @@ -117,7 +117,7 @@ const PinMap MBED_WEAK PinMap_PWM[] = {
};

/*************SPI**************/
const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
#ifdef USART0_BASE
/* USART0 */
{PE10, SPI_0, 0},
Expand All @@ -139,7 +139,7 @@ const PinMap MBED_WEAK PinMap_SPI_MOSI[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
MBED_WEAK const PinMap PinMap_SPI_MISO[] = {
#ifdef USART0_BASE
/* USART0 */
{PE11, SPI_0, 0},
Expand All @@ -161,7 +161,7 @@ const PinMap MBED_WEAK PinMap_SPI_MISO[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
MBED_WEAK const PinMap PinMap_SPI_CLK[] = {
#ifdef USART0_BASE
/* USART0 */
{PE12, SPI_0, 0},
Expand All @@ -183,7 +183,7 @@ const PinMap MBED_WEAK PinMap_SPI_CLK[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_SPI_CS[] = {
MBED_WEAK const PinMap PinMap_SPI_CS[] = {
#ifdef USART0_BASE
/* USART0 */
{PE13, SPI_0, 0},
Expand All @@ -206,7 +206,7 @@ const PinMap MBED_WEAK PinMap_SPI_CS[] = {
};

/************UART**************/
const PinMap MBED_WEAK PinMap_UART_TX[] = {
MBED_WEAK const PinMap PinMap_UART_TX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF6, UART_0, 0},
Expand Down Expand Up @@ -254,7 +254,7 @@ const PinMap MBED_WEAK PinMap_UART_TX[] = {
{NC , NC , NC}
};

const PinMap MBED_WEAK PinMap_UART_RX[] = {
MBED_WEAK const PinMap PinMap_UART_RX[] = {
#ifdef UART0_BASE
/* UART0 */
{PF7, UART_0, 0},
Expand Down
Loading

0 comments on commit 804edd5

Please sign in to comment.