Skip to content

Commit fd0d0cd

Browse files
committed
LPC546XX: Add pins to LPCXpresso restricted list
FPGA GPIO tests cannot be run on certain pins Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent 28eb39c commit fd0d0cd

File tree

1 file changed

+13
-0
lines changed
  • targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MCU_LPC546XX/TARGET_LPCXpresso

1 file changed

+13
-0
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MCU_LPC546XX/TARGET_LPCXpresso/mbed_overrides.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "fsl_emc.h"
1919
#include "fsl_power.h"
2020
#include "fsl_flashiap.h"
21+
#include "hal/pinmap.h"
2122

2223
#define CRC16
2324
#include "crc.h"
@@ -186,3 +187,15 @@ uint32_t qspi_get_freq(void)
186187
return CLOCK_GetFroHfFreq();
187188
}
188189

190+
const PinList *pinmap_restricted_pins()
191+
{
192+
static const PinName pins[] = {
193+
D6, A4
194+
};
195+
static const PinList pin_list = {
196+
sizeof(pins) / sizeof(pins[0]),
197+
pins
198+
};
199+
return &pin_list;
200+
}
201+

0 commit comments

Comments
 (0)