Skip to content

Commit 3a71f86

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

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+
D15, // fixed pull-up (for I2C)
40+
D14, // fixed pull-up (for I2C)
41+
PB_10, // fixed pull-up (for I2C)
42+
PB_11, // fixed pull-up (for I2C)
43+
RCC_OSC32_IN, // OSC32_IN
44+
RCC_OSC32_OUT, // OSC32_OUT
45+
RCC_OSC_IN, // OSC_IN
46+
RCC_OSC_OUT // 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)