Report
2 months, 1 week ago.

Redefining pin mapping (pinmap) in PeripheralPins.c

I would like to remap the pin functions used in the LPC54114. I have imported mbed-os into the project and am editing the PeripheralPins.c file to add the new pin definitions. Following is an excerpt from this file, defining the SPI SSEL pins:

const PinMap PinMap_SPI_SSEL[] = { {P1_0, SPI_0, 1}, {P0_3, SPI_0, 1}, {P1_1, SPI_1, 4}, {P1_2, SPI_1, 4}, {NC , NC , 0} };

The first two elements are just the actual pins and pin function names. What is the third element, the number 1, 4 etc., and how do I define it?

Comment on this question
Be the first to answer this question.

To post an answer, please log in.