mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12380 from mprse/DISCO_L475VG_IOT01A_add_gpio_pinmap
DISCO_L475VG_IOT01A: Add a list of restricted GPIO pins for testingpull/12407/head
commit
c1eaf2c358
|
@ -31,3 +31,23 @@
|
|||
#include "PeripheralPins.h"
|
||||
#include "mbed_toolchain.h"
|
||||
#include "PeripheralPinMaps.h"
|
||||
|
||||
// List of GPIOs with limited functionality
|
||||
const PinList *pinmap_gpio_restricted_pins()
|
||||
{
|
||||
static const PinName pins[] = {
|
||||
D15, // fixed pull-up (for I2C)
|
||||
D14, // fixed pull-up (for I2C)
|
||||
PB_10, // fixed pull-up (for I2C)
|
||||
PB_11, // fixed pull-up (for I2C)
|
||||
RCC_OSC32_IN, // OSC32_IN
|
||||
RCC_OSC32_OUT, // OSC32_OUT
|
||||
RCC_OSC_IN, // OSC_IN
|
||||
RCC_OSC_OUT // OSC_OUT
|
||||
};
|
||||
static const PinList pin_list = {
|
||||
sizeof(pins) / sizeof(pins[0]),
|
||||
pins
|
||||
};
|
||||
return &pin_list;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue