|
1 | 1 | /* mbed Microcontroller Library
|
2 |
| - ******************************************************************************* |
3 |
| - * Copyright (c) 2019, STMicroelectronics |
4 |
| - * SPDX-License-Identifier: Apache-2.0 |
5 |
| - * All rights reserved. |
| 2 | + * SPDX-License-Identifier: BSD-3-Clause |
| 3 | + ****************************************************************************** |
6 | 4 | *
|
7 |
| - * Redistribution and use in source and binary forms, with or without |
8 |
| - * modification, are permitted provided that the following conditions are met: |
| 5 | + * Copyright (c) 2016-2021 STMicroelectronics. |
| 6 | + * All rights reserved. |
9 | 7 | *
|
10 |
| - * 1. Redistributions of source code must retain the above copyright notice, |
11 |
| - * this list of conditions and the following disclaimer. |
12 |
| - * 2. Redistributions in binary form must reproduce the above copyright notice, |
13 |
| - * this list of conditions and the following disclaimer in the documentation |
14 |
| - * and/or other materials provided with the distribution. |
15 |
| - * 3. Neither the name of STMicroelectronics nor the names of its contributors |
16 |
| - * may be used to endorse or promote products derived from this software |
17 |
| - * without specific prior written permission. |
| 8 | + * This software component is licensed by ST under BSD 3-Clause license, |
| 9 | + * the "License"; You may not use this file except in compliance with the |
| 10 | + * License. You may obtain a copy of the License at: |
| 11 | + * opensource.org/licenses/BSD-3-Clause |
18 | 12 | *
|
19 |
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
20 |
| - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
21 |
| - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
22 |
| - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
23 |
| - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
24 |
| - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
25 |
| - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
26 |
| - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
27 |
| - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 |
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 |
| - ******************************************************************************* |
| 13 | + ****************************************************************************** |
30 | 14 | *
|
31 |
| - * Automatically generated from STM32WB55RGVx.xml |
| 15 | + * Automatically generated from STM32CubeMX/db/mcu/STM32WB55RGVx.xml |
32 | 16 | */
|
33 | 17 |
|
34 | 18 | #include "PeripheralPins.h"
|
|
53 | 37 | //==============================================================================
|
54 | 38 |
|
55 | 39 |
|
| 40 | +//*** GPIO *** |
| 41 | + |
| 42 | +MBED_WEAK const PinMap PinMap_GPIO[] = { |
| 43 | + {PA_0, 0, 0}, |
| 44 | + {PA_1, 0, 0}, |
| 45 | + {PA_2, 0, 0}, |
| 46 | + {PA_3, 0, 0}, |
| 47 | + {PA_4, 0, 0}, |
| 48 | + {PA_5, 0, 0}, |
| 49 | + {PA_6, 0, 0}, |
| 50 | + {PA_7, 0, 0}, |
| 51 | + {PA_8, 0, 0}, |
| 52 | + {PA_9, 0, 0}, |
| 53 | + {PA_10, 0, 0}, |
| 54 | + {PA_11, 0, 0}, // Connected to USB_DM |
| 55 | + {PA_12, 0, 0}, // Connected to USB_DP |
| 56 | + {PA_13, 0, 0}, // Connected to JTMS |
| 57 | + {PA_14, 0, 0}, // Connected to JTCK |
| 58 | + {PA_15, 0, 0}, |
| 59 | + {PB_0, 0, 0}, // Connected to LD2 [Green Led] |
| 60 | + {PB_1, 0, 0}, // Connected to LD3 [Red Led] |
| 61 | + {PB_2, 0, 0}, |
| 62 | + {PB_3, 0, 0}, // Connected to JTDO |
| 63 | + {PB_4, 0, 0}, |
| 64 | + {PB_5, 0, 0}, // Connected to LD1 [Blue Led] |
| 65 | +// {PB_6, 0, 0}, // Connected to STDIO_UART_TX |
| 66 | +// {PB_7, 0, 0}, // Connected to STDIO_UART_RX |
| 67 | + {PB_8, 0, 0}, |
| 68 | + {PB_9, 0, 0}, |
| 69 | + {PB_10, 0, 0}, |
| 70 | + {PB_11, 0, 0}, |
| 71 | + {PB_12, 0, 0}, |
| 72 | + {PB_13, 0, 0}, |
| 73 | + {PB_14, 0, 0}, |
| 74 | + {PB_15, 0, 0}, |
| 75 | + {PC_0, 0, 0}, |
| 76 | + {PC_1, 0, 0}, |
| 77 | + {PC_2, 0, 0}, |
| 78 | + {PC_3, 0, 0}, |
| 79 | + {PC_4, 0, 0}, // Connected to B1 [Push Button] |
| 80 | + {PC_5, 0, 0}, |
| 81 | + {PC_6, 0, 0}, |
| 82 | + {PC_10, 0, 0}, |
| 83 | + {PC_11, 0, 0}, |
| 84 | + {PC_12, 0, 0}, |
| 85 | + {PC_13, 0, 0}, // Connected to SYS_WKUP2 |
| 86 | +// {PC_14, 0, 0}, // Connected to RCC_OSC32_IN // PC14-OSC32_IN |
| 87 | +// {PC_15, 0, 0}, // Connected to RCC_OSC32_OUT // PC15-OSC32_OUT |
| 88 | + {PD_0, 0, 0}, // Connected to B2 [Push Button] |
| 89 | + {PD_1, 0, 0}, // Connected to B3 [Push Button] |
| 90 | + {PE_4, 0, 0}, |
| 91 | + {PH_3, 0, 0}, // PH3-BOOT0 |
| 92 | + {NC, NC, 0} |
| 93 | +}; |
| 94 | + |
56 | 95 | //*** ADC ***
|
57 | 96 |
|
58 | 97 | MBED_WEAK const PinMap PinMap_ADC[] = {
|
@@ -109,6 +148,7 @@ MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
|
109 | 148 | //*** PWM ***
|
110 | 149 |
|
111 | 150 | // TIM16 cannot be used because already used by the us_ticker
|
| 151 | +// (update us_ticker_data.h file if another timer is chosen) |
112 | 152 | MBED_WEAK const PinMap PinMap_PWM[] = {
|
113 | 153 | {PA_0, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
|
114 | 154 | {PA_1, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 2, 0)}, // TIM2_CH2
|
@@ -142,36 +182,36 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
|
142 | 182 |
|
143 | 183 | MBED_WEAK const PinMap PinMap_UART_TX[] = {
|
144 | 184 | {PA_2, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
145 |
| - {PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
| 185 | + {PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
146 | 186 | {PB_5, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, // Connected to LD1 [Blue Led]
|
147 |
| - {PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to STDIO_UART_TX |
| 187 | + {PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to STDIO_UART_TX |
148 | 188 | {PB_11, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
149 | 189 | {PC_1, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
150 | 190 | {NC, NC, 0}
|
151 | 191 | };
|
152 | 192 |
|
153 | 193 | MBED_WEAK const PinMap PinMap_UART_RX[] = {
|
154 | 194 | {PA_3, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
155 |
| - {PA_10, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
| 195 | + {PA_10, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
156 | 196 | {PA_12, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, // Connected to USB_DP
|
157 |
| - {PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to STDIO_UART_RX |
| 197 | + {PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to STDIO_UART_RX |
158 | 198 | {PB_10, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
159 | 199 | {PC_0, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
160 | 200 | {NC, NC, 0}
|
161 | 201 | };
|
162 | 202 |
|
163 | 203 | MBED_WEAK const PinMap PinMap_UART_RTS[] = {
|
164 |
| - {PA_12, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to USB_DP |
| 204 | + {PA_12, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to USB_DP |
165 | 205 | {PB_1, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, // Connected to LD3 [Red Led]
|
166 |
| - {PB_3, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to JTDO |
| 206 | + {PB_3, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to JTDO |
167 | 207 | {PB_12, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
168 | 208 | {NC, NC, 0}
|
169 | 209 | };
|
170 | 210 |
|
171 | 211 | MBED_WEAK const PinMap PinMap_UART_CTS[] = {
|
172 | 212 | {PA_6, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
173 |
| - {PA_11, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to USB_DM |
174 |
| - {PB_4, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
| 213 | + {PA_11, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to USB_DM |
| 214 | + {PB_4, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
175 | 215 | {PB_13, LPUART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)},
|
176 | 216 | {NC, NC, 0}
|
177 | 217 | };
|
|
0 commit comments