mirror of https://github.com/ARMmbed/mbed-os.git
STM32 PeripheralPins.c second update after review
genpinmap script version 1.1pull/6931/head
parent
3ac1855d93
commit
b30f3abf11
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -157,7 +157,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
|
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
|
||||||
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
|
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
|
||||||
// {PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)}, // Connected to SWCLK
|
{PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)}, // Connected to SWCLK
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
@ -211,5 +211,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -230,10 +230,6 @@ typedef enum {
|
||||||
SPI_CS = PB_6,
|
SPI_CS = PB_6,
|
||||||
PWM_OUT = PB_3,
|
PWM_OUT = PB_3,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -78,8 +78,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
@ -196,5 +194,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -175,10 +175,6 @@ typedef enum {
|
||||||
SPI_CS = PB_6,
|
SPI_CS = PB_6,
|
||||||
PWM_OUT = PC_7,
|
PWM_OUT = PC_7,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -73,8 +73,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
@ -178,5 +176,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
// {PA_15, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI1)}, // Connected to STDIO_UART_RX
|
// {PA_15, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI1)}, // Connected to STDIO_UART_RX
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -142,10 +142,6 @@ typedef enum {
|
||||||
SPI_CS = PB_1,
|
SPI_CS = PB_1,
|
||||||
PWM_OUT = PB_0,
|
PWM_OUT = PB_0,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC_IN = PF_0,
|
RCC_OSC_IN = PF_0,
|
||||||
RCC_OSC_OUT = PF_1,
|
RCC_OSC_OUT = PF_1,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -73,8 +73,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
|
|
@ -147,8 +147,6 @@ typedef enum {
|
||||||
USB_NOE_ALT0 = PA_13,
|
USB_NOE_ALT0 = PA_13,
|
||||||
USB_NOE_ALT1 = PA_15,
|
USB_NOE_ALT1 = PA_15,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC_IN = PF_0,
|
RCC_OSC_IN = PF_0,
|
||||||
RCC_OSC_OUT = PF_1,
|
RCC_OSC_OUT = PF_1,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -78,8 +78,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
@ -220,5 +218,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -178,8 +178,6 @@ typedef enum {
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
USB_NOE = PA_13,
|
USB_NOE = PA_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -180,8 +180,6 @@ typedef enum {
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
USB_NOE = PA_13,
|
USB_NOE = PA_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -178,10 +178,6 @@ typedef enum {
|
||||||
SPI_CS = PB_6,
|
SPI_CS = PB_6,
|
||||||
PWM_OUT = PB_4,
|
PWM_OUT = PB_4,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -105,7 +105,8 @@ MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
|
||||||
//*** PWM ***
|
//*** PWM ***
|
||||||
|
|
||||||
// TIM4 cannot be used because already used by the us_ticker
|
// TIM4 cannot be used because already used by the us_ticker
|
||||||
const PinMap PinMap_PWM[] = {
|
MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
|
{PA_0, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 1, 0)}, // TIM2_CH1 // Connected to SYS_WKUP
|
||||||
{PA_1, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 2, 0)}, // TIM2_CH2 - Default
|
{PA_1, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 2, 0)}, // TIM2_CH2 - Default
|
||||||
{PA_2, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 3, 0)}, // TIM2_CH3 - Default (warning: not connected on D1 per default)
|
{PA_2, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 3, 0)}, // TIM2_CH3 - Default (warning: not connected on D1 per default)
|
||||||
{PA_3, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 4, 0)}, // TIM2_CH4 - Default (warning: not connected on D0 per default)
|
{PA_3, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 4, 0)}, // TIM2_CH4 - Default (warning: not connected on D0 per default)
|
||||||
|
@ -207,5 +208,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, 0)},
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, 0)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -174,10 +174,6 @@ typedef enum {
|
||||||
SPI_CS = PB_12,
|
SPI_CS = PB_12,
|
||||||
PWM_OUT = PB_8,
|
PWM_OUT = PB_8,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -78,8 +78,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
|
|
@ -158,8 +158,6 @@ typedef enum {
|
||||||
USB_DM = PA_11,
|
USB_DM = PA_11,
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -227,11 +227,11 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
|
||||||
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
||||||
{PG_14, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PG_14, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
@ -243,11 +243,11 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
{PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to LD2 [Blue]
|
{PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to LD2 [Blue]
|
||||||
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
|
||||||
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
||||||
{PG_9, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PG_9, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -173,8 +173,6 @@ typedef enum {
|
||||||
USB_DM = PA_11,
|
USB_DM = PA_11,
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -148,10 +148,6 @@ typedef enum {
|
||||||
SPI_CS = PA_11,
|
SPI_CS = PA_11,
|
||||||
PWM_OUT = PA_8,
|
PWM_OUT = PA_8,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC_IN = PF_0,
|
RCC_OSC_IN = PF_0,
|
||||||
RCC_OSC_OUT = PF_1,
|
RCC_OSC_OUT = PF_1,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -132,7 +132,7 @@ MBED_WEAK const PinMap PinMap_DAC[] = {
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
{PA_10, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
|
{PA_10, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
|
||||||
// {PA_14, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to SWCLK
|
{PA_14, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to SWCLK
|
||||||
{PB_7, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to I2C1_SDA [LSM303DLHC_SDA]
|
{PB_7, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to I2C1_SDA [LSM303DLHC_SDA]
|
||||||
{PB_9, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
|
{PB_9, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
|
||||||
{PF_0, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to OSC_IN
|
{PF_0, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to OSC_IN
|
||||||
|
@ -181,7 +181,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
{PA_12_ALT1, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1 // Connected to DP
|
{PA_12_ALT1, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1 // Connected to DP
|
||||||
{PA_13, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM4, 3, 0)}, // TIM4_CH3 // Connected to SWDIO
|
{PA_13, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM4, 3, 0)}, // TIM4_CH3 // Connected to SWDIO
|
||||||
{PA_13_ALT0, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 1)}, // TIM16_CH1N // Connected to SWDIO
|
{PA_13_ALT0, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 1)}, // TIM16_CH1N // Connected to SWDIO
|
||||||
// {PA_14, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM8, 2, 0)}, // TIM8_CH2 // Connected to SWCLK
|
{PA_14, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM8, 2, 0)}, // TIM8_CH2 // Connected to SWCLK
|
||||||
// {PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
// {PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
||||||
{PA_15, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM8, 1, 0)}, // TIM8_CH1
|
{PA_15, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM8, 1, 0)}, // TIM8_CH1
|
||||||
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 2, 1)}, // TIM1_CH2N
|
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 2, 1)}, // TIM1_CH2N
|
||||||
|
@ -264,7 +264,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to STDIO_UART_TX
|
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to STDIO_UART_TX
|
||||||
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
// {PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWCLK
|
{PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWCLK
|
||||||
{PB_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWO
|
{PB_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWO
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to I2C1_SCL [LSM303DLHC_SCL]
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to I2C1_SCL [LSM303DLHC_SCL]
|
||||||
{PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
{PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
||||||
|
|
|
@ -275,8 +275,6 @@ typedef enum {
|
||||||
USB_DM = PA_11,
|
USB_DM = PA_11,
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -217,8 +217,6 @@ typedef enum {
|
||||||
USB_DM = PA_11,
|
USB_DM = PA_11,
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -80,8 +80,8 @@ MBED_WEAK const PinMap PinMap_ADC[] = {
|
||||||
{PC_3_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
{PC_3_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
||||||
{PC_4, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC2_IN5
|
{PC_4, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC2_IN5
|
||||||
{PC_5, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 11, 0)}, // ADC2_IN11
|
{PC_5, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 11, 0)}, // ADC2_IN11
|
||||||
// {PD_8, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 12, 0)}, // ADC4_IN12 // Connected to STDIO_UART_RX
|
// {PD_8, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 12, 0)}, // ADC4_IN12 // Connected to STDIO_UART_TX
|
||||||
// {PD_9, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 13, 0)}, // ADC4_IN13 // Connected to STDIO_UART_TX
|
// {PD_9, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 13, 0)}, // ADC4_IN13 // Connected to STDIO_UART_RX
|
||||||
{PD_10, ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC3_IN7
|
{PD_10, ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC3_IN7
|
||||||
{PD_10_ALT0, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC4_IN7
|
{PD_10_ALT0, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC4_IN7
|
||||||
{PD_11, ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC3_IN8
|
{PD_11, ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC3_IN8
|
||||||
|
@ -296,13 +296,13 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PB_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWO
|
{PB_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWO
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
// {PB_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_4, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PC_4, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART4)},
|
|
||||||
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART4)},
|
||||||
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART5)},
|
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART5)},
|
||||||
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
||||||
{PE_0, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PE_0, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
@ -316,11 +316,11 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
// {PB_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_5, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PC_5, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART4)},
|
|
||||||
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART4)},
|
||||||
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART5)},
|
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART5)},
|
||||||
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
||||||
{PE_1, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PE_1, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
// {PE_15, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PE_15, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
|
|
|
@ -295,8 +295,6 @@ typedef enum {
|
||||||
USB_DM = PA_11,
|
USB_DM = PA_11,
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -78,7 +78,7 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{ADC_VBAT, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)}, // ADC1_IN17
|
{ADC_VBAT, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)}, // ADC1_IN17
|
||||||
{ADC_VOPAMP2, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)}, // ADC2_IN17
|
{ADC_VOPAMP2, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)}, // ADC2_IN17
|
||||||
|
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** DAC ***
|
//*** DAC ***
|
||||||
|
@ -167,7 +167,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to N1_Drive [Buck/Boost Converter]
|
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to N1_Drive [Buck/Boost Converter]
|
||||||
// {PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWCLK
|
{PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWCLK
|
||||||
{PB_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PB_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to LD_U [LD3 Red Led]
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to LD_U [LD3 Red Led]
|
||||||
{PB_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to LD_R [LD5 Green Led]
|
{PB_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to LD_R [LD5 Green Led]
|
||||||
|
|
|
@ -174,10 +174,6 @@ typedef enum {
|
||||||
SPI_CS = PA_4,
|
SPI_CS = PA_4,
|
||||||
PWM_OUT = PB_6,
|
PWM_OUT = PB_6,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -191,10 +191,6 @@ typedef enum {
|
||||||
SPI_CS = PB_6,
|
SPI_CS = PB_6,
|
||||||
PWM_OUT = PB_4,
|
PWM_OUT = PB_4,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -79,8 +79,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
@ -247,5 +245,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PE_11, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
{PE_11, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -191,8 +191,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -83,8 +83,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
@ -228,5 +226,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -182,8 +182,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -216,5 +216,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -169,10 +169,6 @@ typedef enum {
|
||||||
SPI_CS = PB_12,
|
SPI_CS = PB_12,
|
||||||
PWM_OUT = PA_7,
|
PWM_OUT = PA_7,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -79,8 +79,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
@ -235,5 +233,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12_ALT0, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI4)},
|
{PB_12_ALT0, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI4)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -191,8 +191,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -79,8 +79,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
@ -212,7 +210,7 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
{PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
||||||
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
||||||
{PG_14, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PG_14, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
@ -228,7 +226,7 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
{PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
||||||
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
||||||
{PG_9, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PG_9, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
|
@ -281,8 +281,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -277,8 +277,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -61,7 +61,7 @@ MBED_WEAK const PinMap PinMap_ADC[] = {
|
||||||
{PA_5, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC1_IN5
|
{PA_5, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC1_IN5
|
||||||
{PA_6, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC1_IN6
|
{PA_6, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC1_IN6
|
||||||
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7
|
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7
|
||||||
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LED1
|
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LD1
|
||||||
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
||||||
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
||||||
{PC_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 11, 0)}, // ADC1_IN11
|
{PC_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 11, 0)}, // ADC1_IN11
|
||||||
|
@ -338,7 +338,7 @@ MBED_WEAK const PinMap PinMap_SPI_MISO[] = {
|
||||||
MBED_WEAK const PinMap PinMap_SPI_SCLK[] = {
|
MBED_WEAK const PinMap PinMap_SPI_SCLK[] = {
|
||||||
{PA_5, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)},
|
{PA_5, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)},
|
||||||
{PA_9, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, // Connected to USB_VBUS
|
{PA_9, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, // Connected to USB_VBUS
|
||||||
{PB_0, SPI_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI5)}, // Connected to LED1
|
{PB_0, SPI_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI5)}, // Connected to LD1
|
||||||
{PB_3, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, // Connected to SWO
|
{PB_3, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, // Connected to SWO
|
||||||
{PB_3_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, // Connected to SWO
|
{PB_3_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, // Connected to SWO
|
||||||
{PB_10, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PB_10, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
|
|
|
@ -280,8 +280,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -162,8 +162,8 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
{PA_7_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 1, 1)}, // TIM8_CH1N // Connected to ACP_RST
|
{PA_7_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 1, 1)}, // TIM8_CH1N // Connected to ACP_RST
|
||||||
{PA_7_ALT2, PWM_14, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF9_TIM14, 1, 0)}, // TIM14_CH1 // Connected to ACP_RST
|
{PA_7_ALT2, PWM_14, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF9_TIM14, 1, 0)}, // TIM14_CH1 // Connected to ACP_RST
|
||||||
{PA_8, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 1, 0)}, // TIM1_CH1 // Connected to I2C3_SCL [ACP/RF_SCL]
|
{PA_8, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 1, 0)}, // TIM1_CH1 // Connected to I2C3_SCL [ACP/RF_SCL]
|
||||||
// {PA_9, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 0)}, // TIM1_CH2 // Connected to STDIO_UART_RX
|
// {PA_9, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 0)}, // TIM1_CH2 // Connected to STDIO_UART_TX
|
||||||
// {PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to STDIO_UART_TX
|
// {PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to STDIO_UART_RX
|
||||||
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to R4
|
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to R4
|
||||||
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1 // Connected to TP_INT1 [Touch Panel]
|
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1 // Connected to TP_INT1 [Touch Panel]
|
||||||
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to R3
|
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to R3
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -73,8 +73,8 @@ MBED_WEAK const PinMap PinMap_ADC[] = {
|
||||||
{PA_6_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6
|
{PA_6_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6
|
||||||
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV]
|
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV]
|
||||||
{PA_7_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV]
|
{PA_7_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV]
|
||||||
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LED1
|
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LD1
|
||||||
{PB_0_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8 // Connected to LED1
|
{PB_0_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8 // Connected to LD1
|
||||||
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
||||||
{PB_1_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
{PB_1_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
||||||
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
||||||
|
@ -166,9 +166,9 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
{PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to USB_ID
|
{PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to USB_ID
|
||||||
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to USB_DM
|
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to USB_DM
|
||||||
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
||||||
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to LED1
|
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to LD1
|
||||||
{PB_0_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 // Connected to LED1
|
{PB_0_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 // Connected to LD1
|
||||||
{PB_0_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 2, 1)}, // TIM8_CH2N // Connected to LED1
|
{PB_0_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 2, 1)}, // TIM8_CH2N // Connected to LD1
|
||||||
{PB_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
|
{PB_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
|
||||||
{PB_1_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
|
{PB_1_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
|
||||||
{PB_1_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N
|
{PB_1_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N
|
||||||
|
@ -231,7 +231,7 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PC_10_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
{PC_10_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
||||||
{PE_1, UART_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART8)},
|
{PE_1, UART_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART8)},
|
||||||
{PE_8, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
{PE_8, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
||||||
{PF_7, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
{PF_7, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
||||||
|
@ -250,7 +250,7 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
{PC_11_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
{PC_11_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
||||||
{PE_0, UART_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART8)},
|
{PE_0, UART_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART8)},
|
||||||
{PE_7, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
{PE_7, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
||||||
{PF_6, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
{PF_6, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
||||||
|
@ -289,7 +289,7 @@ MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
|
||||||
{PB_15, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PB_15, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
{PC_3, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PC_3, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
{PC_12, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)},
|
{PC_12, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)},
|
||||||
{PD_6, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)},
|
{PD_6, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI3)},
|
||||||
{PE_6, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
{PE_6, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
||||||
{PE_14, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
{PE_14, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
||||||
{PF_9, SPI_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI5)},
|
{PF_9, SPI_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI5)},
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -73,8 +73,8 @@ MBED_WEAK const PinMap PinMap_ADC[] = {
|
||||||
{PA_6_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6
|
{PA_6_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6
|
||||||
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV]
|
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV]
|
||||||
{PA_7_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV]
|
{PA_7_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV]
|
||||||
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LED1
|
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LD1
|
||||||
{PB_0_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8 // Connected to LED1
|
{PB_0_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8 // Connected to LD1
|
||||||
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
||||||
{PB_1_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
{PB_1_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
||||||
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
||||||
|
@ -166,9 +166,9 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
{PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to USB_ID
|
{PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to USB_ID
|
||||||
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to USB_DM
|
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to USB_DM
|
||||||
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
||||||
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to LED1
|
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to LD1
|
||||||
{PB_0_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 // Connected to LED1
|
{PB_0_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 // Connected to LD1
|
||||||
{PB_0_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 2, 1)}, // TIM8_CH2N // Connected to LED1
|
{PB_0_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 2, 1)}, // TIM8_CH2N // Connected to LD1
|
||||||
{PB_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
|
{PB_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
|
||||||
{PB_1_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
|
{PB_1_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
|
||||||
{PB_1_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N
|
{PB_1_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N
|
||||||
|
@ -231,7 +231,7 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PC_10_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
{PC_10_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
||||||
{PE_1, UART_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART8)},
|
{PE_1, UART_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART8)},
|
||||||
{PE_8, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
{PE_8, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
||||||
{PF_7, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
{PF_7, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
||||||
|
@ -250,7 +250,7 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
{PC_11_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
{PC_11_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
||||||
{PE_0, UART_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART8)},
|
{PE_0, UART_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART8)},
|
||||||
{PE_7, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
{PE_7, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
||||||
{PF_6, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
{PF_6, UART_7, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART7)},
|
||||||
|
@ -289,7 +289,7 @@ MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
|
||||||
{PB_15, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PB_15, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
{PC_3, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PC_3, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
{PC_12, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)},
|
{PC_12, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)},
|
||||||
{PD_6, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)},
|
{PD_6, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI3)},
|
||||||
{PE_6, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
{PE_6, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
||||||
{PE_14, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
{PE_14, SPI_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI4)},
|
||||||
{PF_9, SPI_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI5)},
|
{PF_9, SPI_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI5)},
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -231,8 +231,6 @@ typedef enum {
|
||||||
USB_OTG_HS_ULPI_STP = PC_0,
|
USB_OTG_HS_ULPI_STP = PC_0,
|
||||||
USB_OTG_HS_VBUS = PB_13,
|
USB_OTG_HS_VBUS = PB_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -73,8 +73,8 @@ MBED_WEAK const PinMap PinMap_ADC[] = {
|
||||||
{PA_6_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6
|
{PA_6_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6
|
||||||
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7
|
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7
|
||||||
{PA_7_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7
|
{PA_7_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7
|
||||||
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LED1
|
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LD1
|
||||||
{PB_0_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8 // Connected to LED1
|
{PB_0_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8 // Connected to LD1
|
||||||
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
||||||
{PB_1_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
{PB_1_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
||||||
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
||||||
|
@ -177,9 +177,9 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
{PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to USB_ID
|
{PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to USB_ID
|
||||||
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to USB_DM
|
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to USB_DM
|
||||||
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
||||||
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to LED1
|
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to LD1
|
||||||
{PB_0_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 // Connected to LED1
|
{PB_0_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 // Connected to LD1
|
||||||
{PB_0_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 2, 1)}, // TIM8_CH2N // Connected to LED1
|
{PB_0_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 2, 1)}, // TIM8_CH2N // Connected to LD1
|
||||||
{PB_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
|
{PB_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
|
||||||
{PB_1_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
|
{PB_1_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
|
||||||
{PB_1_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N
|
{PB_1_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N
|
||||||
|
@ -241,8 +241,8 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
|
||||||
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
||||||
|
@ -259,8 +259,8 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_5, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
{PC_5, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
||||||
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
|
||||||
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
||||||
|
@ -285,7 +285,7 @@ MBED_WEAK const PinMap PinMap_UART_RTS[] = {
|
||||||
MBED_WEAK const PinMap PinMap_UART_CTS[] = {
|
MBED_WEAK const PinMap PinMap_UART_CTS[] = {
|
||||||
{PA_0, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PA_0, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PA_11, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to USB_DM
|
{PA_11, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to USB_DM
|
||||||
{PB_0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)}, // Connected to LED1
|
{PB_0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)}, // Connected to LD1
|
||||||
{PB_13, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
{PB_13, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
|
||||||
{PC_9, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_UART5)},
|
{PC_9, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_UART5)},
|
||||||
{PD_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
|
@ -299,7 +299,7 @@ MBED_WEAK const PinMap PinMap_UART_CTS[] = {
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
|
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
|
||||||
{PA_7, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)},
|
{PA_7, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)},
|
||||||
{PB_0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF7_SPI3)}, // Connected to LED1
|
{PB_0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF7_SPI3)}, // Connected to LD1
|
||||||
{PB_2, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF7_SPI3)},
|
{PB_2, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF7_SPI3)},
|
||||||
{PB_5, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)},
|
{PB_5, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)},
|
||||||
{PB_5_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)},
|
{PB_5_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)},
|
||||||
|
|
|
@ -301,8 +301,6 @@ typedef enum {
|
||||||
USB_OTG_HS_ULPI_STP = PC_0,
|
USB_OTG_HS_ULPI_STP = PC_0,
|
||||||
USB_OTG_HS_VBUS = PB_13,
|
USB_OTG_HS_VBUS = PB_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -124,7 +124,7 @@ MBED_WEAK const PinMap PinMap_DAC[] = {
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
{PB_7, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to OTG_FS1_OverCurrent [STMPS2151STR_FAULT]
|
{PB_7, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to OTG_FS1_OverCurrent [STMPS2151STR_FAULT]
|
||||||
{PB_9, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to I2C1_SDA
|
{PB_9, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to I2C1_SDA
|
||||||
// {PB_11, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to STDIO_UART_TX
|
// {PB_11, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to STDIO_UART_RX
|
||||||
{PC_9, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, // Connected to uSD_D1
|
{PC_9, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, // Connected to uSD_D1
|
||||||
{PF_0, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to A0
|
{PF_0, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to A0
|
||||||
{PH_5, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to I2C2_SDA [CS43L22_SDA]
|
{PH_5, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to I2C2_SDA [CS43L22_SDA]
|
||||||
|
@ -136,7 +136,7 @@ MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
|
||||||
{PA_8, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)},
|
{PA_8, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)},
|
||||||
{PB_6, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to QSPI_BK1_NCS [N25Q128A13EF840F_S]
|
{PB_6, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to QSPI_BK1_NCS [N25Q128A13EF840F_S]
|
||||||
{PB_8, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to I2C1_SCL
|
{PB_8, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to I2C1_SCL
|
||||||
// {PB_10, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to STDIO_UART_RX
|
// {PB_10, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to STDIO_UART_TX
|
||||||
{PF_1, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to A1
|
{PF_1, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to A1
|
||||||
{PH_4, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to I2C2_SCL [CS43L22_SCL]
|
{PH_4, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to I2C2_SCL [CS43L22_SCL]
|
||||||
{PH_7, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, // Connected to GPIO_Output
|
{PH_7, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, // Connected to GPIO_Output
|
||||||
|
@ -338,7 +338,7 @@ MBED_WEAK const PinMap PinMap_SPI_SCLK[] = {
|
||||||
{PA_9, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, // Connected to VBUS_FS1
|
{PA_9, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, // Connected to VBUS_FS1
|
||||||
{PB_3, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, // Connected to I2S3_CK
|
{PB_3, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, // Connected to I2S3_CK
|
||||||
{PB_3_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, // Connected to I2S3_CK
|
{PB_3_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, // Connected to I2S3_CK
|
||||||
// {PB_10, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, // Connected to STDIO_UART_RX
|
// {PB_10, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, // Connected to STDIO_UART_TX
|
||||||
{PB_13, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PB_13, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
{PC_10, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, // Connected to uSD_D2
|
{PC_10, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, // Connected to uSD_D2
|
||||||
{PD_3, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PD_3, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -231,8 +231,8 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
|
||||||
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
||||||
|
@ -250,8 +250,8 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
{PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to LD2 [Blue]
|
{PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to LD2 [Blue]
|
||||||
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
|
||||||
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -231,8 +231,8 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
|
||||||
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
|
||||||
|
@ -250,8 +250,8 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
{PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to LD2 [Blue]
|
{PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to LD2 [Blue]
|
||||||
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
|
||||||
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -73,8 +73,8 @@ MBED_WEAK const PinMap PinMap_ADC[] = {
|
||||||
{PA_6_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6
|
{PA_6_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6
|
||||||
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV] - JP6 ON
|
{PA_7, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV] - JP6 ON
|
||||||
{PA_7_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV] - JP6 ON
|
{PA_7_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7 // Connected to RMII_CRS_DV [LAN8742A-CZ-TR_CRS_DV] - JP6 ON
|
||||||
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LED1
|
{PB_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 // Connected to LD1
|
||||||
{PB_0_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8 // Connected to LED1
|
{PB_0_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8 // Connected to LD1
|
||||||
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
{PB_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9
|
||||||
{PB_1_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
{PB_1_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
|
||||||
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
{PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC1_IN10
|
||||||
|
@ -174,9 +174,9 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
{PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to USB_ID
|
{PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 0)}, // TIM1_CH3 // Connected to USB_ID
|
||||||
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to USB_DM
|
{PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 // Connected to USB_DM
|
||||||
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
{PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
||||||
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to LED
|
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N // Connected to LD1
|
||||||
{PB_0_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 // Connected to LED
|
{PB_0_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 // Connected to LD1
|
||||||
{PB_0_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 2, 1)}, // TIM8_CH2N // Connected to LED
|
{PB_0_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 2, 1)}, // TIM8_CH2N // Connected to LD1
|
||||||
{PB_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
|
{PB_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 3, 1)}, // TIM1_CH3N
|
||||||
{PB_1_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
|
{PB_1_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4
|
||||||
{PB_1_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N
|
{PB_1_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N
|
||||||
|
@ -269,8 +269,8 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
{PB_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PB_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PB_15, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
|
{PB_15, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
|
||||||
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
|
||||||
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
|
||||||
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
|
||||||
|
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PD_0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
{PD_0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
|
||||||
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
|
||||||
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -73,8 +73,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
@ -123,7 +121,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PA_1, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
|
{PA_1, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
|
||||||
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to STDIO_UART_TX
|
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to STDIO_UART_TX
|
||||||
{PA_2_ALT0, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)}, // Connected to STDIO_UART_TX
|
// {PA_2, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)}, // Connected to STDIO_UART_TX
|
||||||
{PA_4, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
|
{PA_4, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
|
||||||
// {PA_9, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // STDIO UART
|
// {PA_9, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // STDIO UART
|
||||||
// {PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to TCK
|
// {PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to TCK
|
||||||
|
@ -193,5 +191,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
// {PA_15, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI1)}, // Connected to STDIO_UART_RX
|
// {PA_15, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI1)}, // Connected to STDIO_UART_RX
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -139,10 +139,6 @@ typedef enum {
|
||||||
SPI_CS = PA_11,
|
SPI_CS = PA_11,
|
||||||
PWM_OUT = PB_0,
|
PWM_OUT = PB_0,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -72,8 +72,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No DAC ***
|
|
||||||
|
|
||||||
//*** I2C ***
|
//*** I2C ***
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
|
@ -182,5 +180,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
// {PA_15, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI1)}, // Connected to STDIO_UART_RX
|
// {PA_15, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI1)}, // Connected to STDIO_UART_RX
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -135,10 +135,6 @@ typedef enum {
|
||||||
SPI_CS = PA_11,
|
SPI_CS = PA_11,
|
||||||
PWM_OUT = PB_0,
|
PWM_OUT = PB_0,
|
||||||
|
|
||||||
/**** No USB pins ***/
|
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -246,5 +246,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -186,8 +186,6 @@ typedef enum {
|
||||||
USB_NOE = PC_9,
|
USB_NOE = PC_9,
|
||||||
USB_NOE_ALT0 = PA_13,
|
USB_NOE_ALT0 = PA_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -127,7 +127,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to TSC_G1_IO3
|
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to TSC_G1_IO3
|
||||||
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)}, // Connected to STDIO_UART_TX
|
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)}, // Connected to STDIO_UART_TX
|
||||||
// {PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to SWCLK
|
{PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to SWCLK
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
|
||||||
{PB_10, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_LPUART1)}, // Connected to ePD1_PWR_ENn [ePaper_PowerOn]
|
{PB_10, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_LPUART1)}, // Connected to ePD1_PWR_ENn [ePaper_PowerOn]
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
|
@ -192,5 +192,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)}, // Connected to NFC_NSS
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)}, // Connected to NFC_NSS
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -148,8 +148,6 @@ typedef enum {
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
USB_NOE = PA_13,
|
USB_NOE = PA_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -207,5 +207,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -162,8 +162,6 @@ typedef enum {
|
||||||
USB_NOE = PC_9,
|
USB_NOE = PC_9,
|
||||||
USB_NOE_ALT0 = PA_13,
|
USB_NOE_ALT0 = PA_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -55,8 +55,8 @@
|
||||||
MBED_WEAK const PinMap PinMap_ADC[] = {
|
MBED_WEAK const PinMap PinMap_ADC[] = {
|
||||||
{PA_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)}, // ADC_IN0
|
{PA_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)}, // ADC_IN0
|
||||||
{PA_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC_IN1 // Connected to RADIO_ANT_SWITCH_RX
|
{PA_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC_IN1 // Connected to RADIO_ANT_SWITCH_RX
|
||||||
// {PA_2, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC_IN2 // Connected to STDIO_UART_RX
|
// {PA_2, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC_IN2 // Connected to STDIO_UART_TX
|
||||||
// {PA_3, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC_IN3 // Connected to STDIO_UART_TX
|
// {PA_3, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC_IN3 // Connected to STDIO_UART_RX
|
||||||
{PA_4, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC_IN4
|
{PA_4, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC_IN4
|
||||||
{PA_5, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC_IN5
|
{PA_5, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC_IN5
|
||||||
{PA_6, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC_IN6 // Connected to RADIO_MISO
|
{PA_6, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC_IN6 // Connected to RADIO_MISO
|
||||||
|
@ -114,10 +114,10 @@ MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
|
||||||
MBED_WEAK const PinMap PinMap_PWM[] = {
|
MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
{PA_0, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 1, 0)}, // TIM2_CH1
|
{PA_0, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 1, 0)}, // TIM2_CH1
|
||||||
{PA_1, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 2, 0)}, // TIM2_CH2 // Connected to RADIO_ANT_SWITCH_RX
|
{PA_1, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 2, 0)}, // TIM2_CH2 // Connected to RADIO_ANT_SWITCH_RX
|
||||||
// {PA_2, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 3, 0)}, // TIM2_CH3 // Connected to STDIO_UART_RX
|
// {PA_2, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 3, 0)}, // TIM2_CH3 // Connected to STDIO_UART_TX
|
||||||
// {PA_2, PWM_21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_TIM21, 1, 0)}, // TIM21_CH1 // Connected to STDIO_UART_RX
|
// {PA_2, PWM_21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_TIM21, 1, 0)}, // TIM21_CH1 // Connected to STDIO_UART_TX
|
||||||
// {PA_3, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 4, 0)}, // TIM2_CH4 // Connected to STDIO_UART_TX
|
// {PA_3, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM2, 4, 0)}, // TIM2_CH4 // Connected to STDIO_UART_RX
|
||||||
// {PA_3, PWM_21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_TIM21, 2, 0)}, // TIM21_CH2 // Connected to STDIO_UART_TX
|
// {PA_3, PWM_21, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_TIM21, 2, 0)}, // TIM21_CH2 // Connected to STDIO_UART_RX
|
||||||
{PA_5, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 1, 0)}, // TIM2_CH1
|
{PA_5, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM2, 1, 0)}, // TIM2_CH1
|
||||||
{PA_6, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1 // Connected to RADIO_MISO
|
{PA_6, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1 // Connected to RADIO_MISO
|
||||||
{PA_6_ALT0, PWM_22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 1, 0)}, // TIM22_CH1 // Connected to RADIO_MISO
|
{PA_6_ALT0, PWM_22, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM22, 1, 0)}, // TIM22_CH1 // Connected to RADIO_MISO
|
||||||
|
@ -142,8 +142,8 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PA_0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_USART4)},
|
{PA_0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_USART4)},
|
||||||
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to STDIO_UART_RX
|
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to STDIO_UART_TX
|
||||||
{PA_2_ALT0, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)}, // Connected to STDIO_UART_RX
|
// {PA_2, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)}, // Connected to STDIO_UART_TX
|
||||||
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
|
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
|
||||||
{PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
|
{PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)},
|
||||||
{PA_14_ALT0, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
|
{PA_14_ALT0, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
|
||||||
|
@ -158,7 +158,7 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
{PA_1, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_USART4)}, // Connected to RADIO_ANT_SWITCH_RX
|
{PA_1, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_USART4)}, // Connected to RADIO_ANT_SWITCH_RX
|
||||||
{PA_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to STDIO_UART_TX
|
{PA_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to STDIO_UART_TX
|
||||||
{PA_3_ALT0, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)}, // Connected to STDIO_UART_TX
|
// {PA_3, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)}, // Connected to STDIO_UART_TX
|
||||||
{PA_10, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
|
{PA_10, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART1)},
|
||||||
{PA_13, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
|
{PA_13, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_LPUART1)},
|
||||||
{PA_15, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to RADIO_NSS
|
{PA_15, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_USART2)}, // Connected to RADIO_NSS
|
||||||
|
@ -226,5 +226,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)}, // Connected to SPI2_NSS
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)}, // Connected to SPI2_NSS
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -161,8 +161,6 @@ typedef enum {
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
USB_NOE = PA_13,
|
USB_NOE = PA_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -109,7 +109,7 @@ MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
|
||||||
|
|
||||||
//*** PWM ***
|
//*** PWM ***
|
||||||
|
|
||||||
// TIM5 cannot be used because already used by the us_ticker.
|
// TIM5 cannot be used because already used by the us_ticker
|
||||||
MBED_WEAK const PinMap PinMap_PWM[] = {
|
MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
{PA_0, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
{PA_0, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
||||||
// {PA_0, PWM_5, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM5, 1, 0)}, // TIM5_CH1
|
// {PA_0, PWM_5, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM5, 1, 0)}, // TIM5_CH1
|
||||||
|
@ -228,5 +228,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
|
||||||
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
//*** No CAN ***
|
|
||||||
|
|
|
@ -185,8 +185,6 @@ typedef enum {
|
||||||
USB_DM = PA_11,
|
USB_DM = PA_11,
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -127,15 +127,15 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
||||||
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to STDIO_UART_TX
|
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to STDIO_UART_TX
|
||||||
{PA_2_ALT0, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, // Connected to STDIO_UART_TX
|
// {PA_2, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, // Connected to STDIO_UART_TX
|
||||||
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
||||||
{PA_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
// {PA_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
|
||||||
{PA_3_ALT0, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
// {PA_3, LPUART_1,STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, // No LPUART_1 TX
|
||||||
{PA_10, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PA_10, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
{PA_15, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_USART2)}, // Connected to STDIO_UART_RX
|
{PA_15, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_USART2)}, // Connected to STDIO_UART_RX
|
||||||
{PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
{PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
|
||||||
|
|
|
@ -145,8 +145,6 @@ typedef enum {
|
||||||
USB_DP = PA_12,
|
USB_DP = PA_12,
|
||||||
USB_NOE = PA_13,
|
USB_NOE = PA_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -219,8 +219,6 @@ typedef enum {
|
||||||
USB_NOE = PC_9,
|
USB_NOE = PC_9,
|
||||||
USB_NOE_ALT0 = PA_13,
|
USB_NOE_ALT0 = PA_13,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -250,8 +250,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -234,8 +234,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -219,8 +219,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -219,8 +219,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF = PA_8,
|
USB_OTG_FS_SOF = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
|
|
@ -313,8 +313,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF_ALT0 = PA_8,
|
USB_OTG_FS_SOF_ALT0 = PA_8,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// Notes
|
// Notes
|
||||||
//
|
//
|
||||||
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
|
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
|
||||||
// HW peripheral instances. You can use them the same way as any other "normal"
|
// HW peripheral instances. You can use them the same way as any other "normal"
|
||||||
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
|
||||||
// pinout image on mbed.org.
|
// pinout image on mbed.org.
|
||||||
|
@ -131,7 +131,7 @@ MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
|
||||||
{PD_13, I2C_4, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C4)},
|
{PD_13, I2C_4, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C4)},
|
||||||
{PF_0, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
|
{PF_0, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
|
||||||
{PF_15, I2C_4, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C4)},
|
{PF_15, I2C_4, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C4)},
|
||||||
// {PG_8, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, // Connected to STDIO_UART_TX
|
// {PG_8, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, // Connected to STDIO_UART_RX
|
||||||
{PG_13, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to SMPS_SW [SW_ST1PS02D1QTR]
|
{PG_13, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to SMPS_SW [SW_ST1PS02D1QTR]
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
@ -149,7 +149,7 @@ MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
|
||||||
{PD_12, I2C_4, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C4)},
|
{PD_12, I2C_4, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C4)},
|
||||||
{PF_1, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
|
{PF_1, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
|
||||||
{PF_14, I2C_4, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C4)},
|
{PF_14, I2C_4, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C4)},
|
||||||
// {PG_7, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, // Connected to STDIO_UART_RX
|
// {PG_7, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, // Connected to STDIO_UART_TX
|
||||||
{PG_14, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
|
{PG_14, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
|
||||||
{NC, NC, 0}
|
{NC, NC, 0}
|
||||||
};
|
};
|
||||||
|
|
|
@ -289,8 +289,6 @@ typedef enum {
|
||||||
USB_OTG_FS_SOF_ALT0 = PA_14,
|
USB_OTG_FS_SOF_ALT0 = PA_14,
|
||||||
USB_OTG_FS_VBUS = PA_9,
|
USB_OTG_FS_VBUS = PA_9,
|
||||||
|
|
||||||
/**** No ETHERNET pins ***/
|
|
||||||
|
|
||||||
/**** OSCILLATOR pins ****/
|
/**** OSCILLATOR pins ****/
|
||||||
RCC_OSC32_IN = PC_14,
|
RCC_OSC32_IN = PC_14,
|
||||||
RCC_OSC32_OUT = PC_15,
|
RCC_OSC32_OUT = PC_15,
|
||||||
|
|
Loading…
Reference in New Issue