Merge pull request #12380 from mprse/DISCO_L475VG_IOT01A_add_gpio_pinmap

DISCO_L475VG_IOT01A: Add a list of restricted GPIO pins for testing
pull/12407/head
Martin Kojtal 2020-02-11 11:58:53 +00:00 committed by GitHub
commit c1eaf2c358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -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;
}