Merge pull request #11002 from NXPmicro/Add_Restricted_List

LPC546XX: Add pins to LPCXpresso restricted list
pull/11024/head
Martin Kojtal 2019-07-11 08:14:20 +01:00 committed by GitHub
commit 9fdfe3fa30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include "fsl_emc.h"
#include "fsl_power.h"
#include "fsl_flashiap.h"
#include "hal/pinmap.h"
#define CRC16
#include "crc.h"
@ -186,3 +187,17 @@ uint32_t qspi_get_freq(void)
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;
}