Skip to content

Commit 3ac1855

Browse files
committed
STM32L4 DISCO : PeripheralPins.c and PinNames.h files alignment
1 parent 3e56a68 commit 3ac1855

File tree

6 files changed

+942
-783
lines changed

6 files changed

+942
-783
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/PeripheralPins.c

Lines changed: 234 additions & 230 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/PinNames.h

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* mbed Microcontroller Library
22
*******************************************************************************
3-
* Copyright (c) 2017, STMicroelectronics
3+
* Copyright (c) 2018, STMicroelectronics
44
* All rights reserved.
55
*
66
* Redistribution and use in source and binary forms, with or without
@@ -27,6 +27,7 @@
2727
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*******************************************************************************
2929
*/
30+
3031
#ifndef MBED_PINNAMES_H
3132
#define MBED_PINNAMES_H
3233

@@ -240,6 +241,41 @@ typedef enum {
240241
SPI_CS = D10,
241242
PWM_OUT = D9,
242243

244+
/**** USB pins ****/
245+
USB_OTG_FS_DM = PA_11,
246+
USB_OTG_FS_DP = PA_12,
247+
USB_OTG_FS_ID = PA_10,
248+
USB_OTG_FS_NOE = PC_9,
249+
USB_OTG_FS_NOE_ALT0 = PA_13,
250+
USB_OTG_FS_SOF = PA_8,
251+
USB_OTG_FS_VBUS = PA_9,
252+
253+
/**** No ETHERNET pins ***/
254+
255+
/**** OSCILLATOR pins ****/
256+
RCC_OSC32_IN = PC_14,
257+
RCC_OSC32_OUT = PC_15,
258+
RCC_OSC_IN = PH_0,
259+
RCC_OSC_OUT = PH_1,
260+
261+
/**** DEBUG pins ****/
262+
SYS_JTCK_SWCLK = PA_14,
263+
SYS_JTDI = PA_15,
264+
SYS_JTDO_SWO = PB_3,
265+
SYS_JTMS_SWDIO = PA_13,
266+
SYS_JTRST = PB_4,
267+
SYS_PVD_IN = PB_7,
268+
SYS_TRACECLK = PE_2,
269+
SYS_TRACED0 = PE_3,
270+
SYS_TRACED1 = PE_4,
271+
SYS_TRACED2 = PE_5,
272+
SYS_TRACED3 = PE_6,
273+
SYS_WKUP1 = PA_0,
274+
SYS_WKUP2 = PC_13,
275+
SYS_WKUP3 = PE_6,
276+
SYS_WKUP4 = PA_2,
277+
SYS_WKUP5 = PC_5,
278+
243279
// Not connected
244280
NC = (int)0xFFFFFFFF
245281
} PinName;

0 commit comments

Comments
 (0)