This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432P401R: A bug of MSP432 DriverLib - v3_10_00_09,or I got a wrong understanding?

Part Number: MSP432P401R
Other Parts Discussed in Thread: SIMPLELINK-MSP432-SDK

File:

interrupt.c

Function:

void Interrupt_setPriorityGrouping(uint32_t bits)
{
//
// Check the arguments.
//
ASSERT(bits < NUM_PRIORITY);

//
// Set the priority grouping.
//
SCB->AIRCR = SCB_AIRCR_VECTKEY_Msk | g_pulPriority[bits];
}

Question:

In my opinion, the code“SCB->AIRCR = SCB_AIRCR_VECTKEY_Msk | g_pulPriority[bits];” should be “SCB->AIRCR = (((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos)) | g_pulPriority[bits];” at least,not to mention we should mask the bits not-PRIORITY-relation.

**Attention** This is a public forum