lpcopen Chip_SWM_MovablePinUnAssign

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lpcopen Chip_SWM_MovablePinUnAssign

960 Views
alsaleem
Contributor I

I was developing an application for LPC81x and needed this function, but it does not exist.

Here a suggestion to create one..

/* unassign a movable pin function to a physical pin */

void Chip_SWM_MovablePinUnAssign(CHIP_SWM_PIN_MOVABLE_T movable)

{

    uint32_t temp;

    int pinshift = PINSHIFT(movable), regIndex = PINASSIGN_IDX(movable);

    temp = LPC_SWM->PINASSIGN[regIndex] & (~(0xFF << pinshift));

    LPC_SWM->PINASSIGN[regIndex] = temp | (0xFF << pinshift);

}

regards,

Labels (1)
0 Kudos
Reply
1 Reply

714 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.

Thanks for your sharing.

Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply