Skip to content

Commit 1aafdfa

Browse files
mmahadevan108c1728p9
authored andcommitted
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>
1 parent 28eb39c commit 1aafdfa

File tree

1 file changed

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

1 file changed

+15
-0
lines changed

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

+15
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,17 @@ uint32_t qspi_get_freq(void)
186187
return CLOCK_GetFroHfFreq();
187188
}
188189

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

0 commit comments

Comments
 (0)