11/* mbed Microcontroller Library
2- *******************************************************************************
3- * Copyright (c) 2018, STMicroelectronics
2+ * SPDX-License-Identifier: BSD-3-Clause
3+ ******************************************************************************
4+ *
5+ * Copyright (c) 2016-2021 STMicroelectronics.
46 * All rights reserved.
57 *
6- * Redistribution and use in source and binary forms, with or without
7- * modification, are permitted provided that the following conditions are met:
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
812 *
9- * 1. Redistributions of source code must retain the above copyright notice,
10- * this list of conditions and the following disclaimer.
11- * 2. Redistributions in binary form must reproduce the above copyright notice,
12- * this list of conditions and the following disclaimer in the documentation
13- * and/or other materials provided with the distribution.
14- * 3. Neither the name of STMicroelectronics nor the names of its contributors
15- * may be used to endorse or promote products derived from this software
16- * without specific prior written permission.
13+ ******************************************************************************
1714 *
18- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28- *******************************************************************************
15+ * Automatically generated from STM32CubeMX/db/mcu/STM32L432K(B-C)Ux.xml
2916 */
3017
3118/* MBED TARGET LIST: NUCLEO_L432KC */
@@ -42,76 +29,73 @@ extern "C" {
4229
4330typedef enum {
4431 ALT0 = 0x100 ,
45- ALT1 = 0x200 ,
46- ALT2 = 0x300 ,
47- ALT3 = 0x400
4832} ALTx ;
4933
5034typedef enum {
51- PA_0 = 0x00 ,
52- PA_1 = 0x01 ,
53- PA_2 = 0x02 ,
54- PA_2_ALT0 = PA_2 | ALT0 ,
55- PA_3 = 0x03 ,
56- PA_3_ALT0 = PA_3 | ALT0 ,
57- PA_4 = 0x04 ,
58- PA_4_ALT0 = PA_4 | ALT0 ,
59- PA_5 = 0x05 ,
60- PA_6 = 0x06 ,
61- PA_7 = 0x07 ,
62- PA_8 = 0x08 ,
63- PA_9 = 0x09 ,
64- PA_10 = 0x0A ,
65- PA_11 = 0x0B ,
66- PA_12 = 0x0C ,
67- PA_13 = 0x0D ,
68- PA_14 = 0x0E ,
69- PA_15 = 0x0F ,
70- PA_15_ALT0 = PA_15 | ALT0 ,
71-
72- PB_0 = 0x10 ,
73- PB_1 = 0x11 ,
74- PB_2 = 0x12 ,
75- PB_3 = 0x13 ,
76- PB_3_ALT0 = PB_3 | ALT0 ,
77- PB_4 = 0x14 ,
78- PB_4_ALT0 = PB_4 | ALT0 ,
79- PB_5 = 0x15 ,
80- PB_5_ALT0 = PB_5 | ALT0 ,
81- PB_6 = 0x16 ,
82- PB_7 = 0x17 ,
83-
84- PC_14 = 0x2E ,
85- PC_15 = 0x2F ,
86-
87- // ADC internal channels
88- ADC_TEMP = 0xF0 ,
89- ADC_VREF = 0xF1 ,
90- ADC_VBAT = 0xF2 ,
91-
92- // Arduino Nano connector namings
93- A0 = PA_0 ,
94- A1 = PA_1 ,
95- A2 = PA_3 ,
96- A3 = PA_4 ,
97- A4 = PA_5 ,
98- A5 = PA_6 ,
99- A6 = PA_7 ,
100- A7 = PA_2 ,
101- D0 = PA_10 ,
102- D1 = PA_9 ,
103- D2 = PA_12 ,
104- D3 = PB_0 ,
105- D4 = PB_7 ,
106- D5 = PB_6 ,
107- D6 = PB_1 ,
108- D7 = PC_14 ,
109- D8 = PC_15 ,
110- D9 = PA_8 ,
111- D10 = PA_11 ,
112- D11 = PB_5 ,
113- D12 = PB_4 ,
114- D13 = PB_3 ,
35+ PA_0 = 0x00 ,
36+ PA_1 = 0x01 ,
37+ PA_2 = 0x02 ,
38+ PA_2_ALT0 = PA_2 | ALT0 , // same pin used for alternate HW
39+ PA_3 = 0x03 ,
40+ PA_3_ALT0 = PA_3 | ALT0 , // same pin used for alternate HW
41+ PA_4 = 0x04 ,
42+ PA_4_ALT0 = PA_4 | ALT0 , // same pin used for alternate HW
43+ PA_5 = 0x05 ,
44+ PA_6 = 0x06 ,
45+ PA_7 = 0x07 ,
46+ PA_8 = 0x08 ,
47+ PA_9 = 0x09 ,
48+ PA_10 = 0x0A ,
49+ PA_11 = 0x0B ,
50+ PA_12 = 0x0C ,
51+ PA_13 = 0x0D ,
52+ PA_14 = 0x0E ,
53+ PA_15 = 0x0F ,
54+ PA_15_ALT0 = PA_15 | ALT0 , // same pin used for alternate HW
55+ PB_0 = 0x10 ,
56+ PB_1 = 0x11 ,
57+ PB_3 = 0x13 ,
58+ PB_3_ALT0 = PB_3 | ALT0 , // same pin used for alternate HW
59+ PB_4 = 0x14 ,
60+ PB_4_ALT0 = PB_4 | ALT0 , // same pin used for alternate HW
61+ PB_5 = 0x15 ,
62+ PB_5_ALT0 = PB_5 | ALT0 , // same pin used for alternate HW
63+ PB_6 = 0x16 ,
64+ PB_7 = 0x17 ,
65+ PC_14 = 0x2E ,
66+ PC_15 = 0x2F ,
67+ PH_3 = 0x73 ,
68+
69+ /**** ADC internal channels ****/
70+
71+ ADC_TEMP = 0xF0 , // Internal pin virtual value
72+ ADC_VREF = 0xF1 , // Internal pin virtual value
73+ ADC_VBAT = 0xF2 , // Internal pin virtual value
74+
75+ // Arduino Nano pins
76+ A0 = PA_0 ,
77+ A1 = PA_1 ,
78+ A2 = PA_3 ,
79+ A3 = PA_4 ,
80+ A4 = PA_5 ,
81+ A5 = PA_6 ,
82+ A6 = PA_7 ,
83+ A7 = PA_2 ,
84+
85+ D0 = PA_10 ,
86+ D1 = PA_9 ,
87+ D2 = PA_12 ,
88+ D3 = PB_0 ,
89+ D4 = PB_7 ,
90+ D5 = PB_6 ,
91+ D6 = PB_1 ,
92+ D7 = PC_14 ,
93+ D8 = PC_15 ,
94+ D9 = PA_8 ,
95+ D10 = PA_11 ,
96+ D11 = PB_5 ,
97+ D12 = PB_4 ,
98+ D13 = PB_3 ,
11599
116100 // STDIO for console print
117101#ifdef MBED_CONF_TARGET_STDIO_UART_TX
@@ -125,14 +109,6 @@ typedef enum {
125109 CONSOLE_RX = PA_15 ,
126110#endif
127111
128- I2C_SCL = PB_6 ,
129- I2C_SDA = PB_7 ,
130- SPI_MOSI = PB_5 ,
131- SPI_MISO = PB_4 ,
132- SPI_SCK = PB_3 ,
133- SPI_CS = PA_11 ,
134- PWM_OUT = PB_0 ,
135-
136112 /**** USB pins ****/
137113 USB_DM = PA_11 ,
138114 USB_DP = PA_12 ,
@@ -156,9 +132,7 @@ typedef enum {
156132 NC = (int )0xFFFFFFFF
157133} PinName ;
158134
159- // Standardized LED and button names
160- #define LED1 PB_3
161-
135+ #define LED1 PB_3 // LD3 [Green]
162136
163137#ifdef __cplusplus
164138}
0 commit comments