LPC55S69: Add restricted GPIO pins for FPGA testing

pull/12342/head
Przemyslaw Stekiel 2020-02-07 12:33:15 +01:00
parent 83b7b6d142
commit a0ff95bed5
1 changed files with 21 additions and 0 deletions

View File

@ -16,3 +16,24 @@
#include "PeripheralPins.h"
#include "PeripheralPinMaps.h"
// List of GPIOs with limited functionality
const PinList *pinmap_gpio_restricted_pins()
{
static const PinName pins[] = {
A4, // fixed pull-up (for I2C)
A5, // fixed pull-up (for I2C)
D5, // fixed pull-up (for LED)
D3, // fixed pull-up (for LED)
D4, // fixed pull-up (for LED)
D7, // fixed pull-up
D15, // fixed pull-up (for I2C)
D14 // fixed pull-up (for I2C)
};
static const PinList pin_list = {
sizeof(pins) / sizeof(pins[0]),
pins
};
return &pin_list;
}