Skip to content

Commit

Permalink
Merge pull request ARMmbed#12380 from mprse/DISCO_L475VG_IOT01A_add_g…
Browse files Browse the repository at this point in the history
…pio_pinmap

DISCO_L475VG_IOT01A: Add a list of restricted GPIO pins for testing
  • Loading branch information
0xc0170 authored Feb 11, 2020
2 parents a745525 + 3a71f86 commit c1eaf2c
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit c1eaf2c

Please sign in to comment.