lpcopen Chip_SWM_MovablePinUnAssign

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

lpcopen Chip_SWM_MovablePinUnAssign

956件の閲覧回数
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,

ラベル(1)
0 件の賞賛
返信
1 返信

710件の閲覧回数
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 件の賞賛
返信