LPC546XX: Add pins to LPCXpresso restricted list

FPGA GPIO tests cannot be run on certain pins

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
pull/11002/head
Mahesh Mahadevan 2019-07-09 15:26:45 -05:00
parent 28eb39c724
commit 58ba83b6e4
1 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include "fsl_emc.h" #include "fsl_emc.h"
#include "fsl_power.h" #include "fsl_power.h"
#include "fsl_flashiap.h" #include "fsl_flashiap.h"
#include "hal/pinmap.h"
#define CRC16 #define CRC16
#include "crc.h" #include "crc.h"
@ -186,3 +187,17 @@ uint32_t qspi_get_freq(void)
return CLOCK_GetFroHfFreq(); return CLOCK_GetFroHfFreq();
} }
const PinList *pinmap_restricted_pins()
{
/* D6 pin is used by the LCD
A4 pin is used by the accelerometer */
static const PinName pins[] = {
D6, A4
};
static const PinList pin_list = {
sizeof(pins) / sizeof(pins[0]),
pins
};
return &pin_list;
}