Skip to content

Commit 9fdfe3f

Browse files
authored
Merge pull request #11002 from NXPmicro/Add_Restricted_List
LPC546XX: Add pins to LPCXpresso restricted list
2 parents 90aaa83 + 58ba83b commit 9fdfe3f

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

Lines changed: 15 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,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)