Skip to content

Commit c2cd2bb

Browse files
committed
DISCO_L475VG_IOT01A: Add a list of restricted GPIO pins for testing
1 parent 8dc15ee commit c2cd2bb

File tree

1 file changed

+20
-0
lines changed
  • targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,23 @@
3131
#include "PeripheralPins.h"
3232
#include "mbed_toolchain.h"
3333
#include "PeripheralPinMaps.h"
34+
35+
// List of GPIOs with limited functionality
36+
const PinList *pinmap_gpio_restricted_pins()
37+
{
38+
static const PinName pins[] = {
39+
PB_8, // fixed pull-up (for I2C)
40+
PB_9, // fixed pull-up (for I2C)
41+
PB_10, // fixed pull-up (for I2C)
42+
PB_11, // fixed pull-up (for I2C)
43+
PC_14, // OSC32_IN
44+
PC_15, // OSC32_OUT
45+
PH_0, // OSC_IN
46+
PH_1 // OSC_OUT
47+
};
48+
static const PinList pin_list = {
49+
sizeof(pins) / sizeof(pins[0]),
50+
pins
51+
};
52+
return &pin_list;
53+
}

0 commit comments

Comments
 (0)