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.

MSPM0G3507: 关于部分底层驱动库函数问题

Part Number: MSPM0G3507


库函数中有一些处理比如上图,"return (adc12->ULLMEM.INT_EVENT1.RIS & ~(eventMask));"中为何eventMask要进行取反操作呢?我总觉得这里写错了,而看下面的“adc12->ULLMEM.INT_EVENT1.ICLR |= (eventMask);”则是正确的写法;请问到底是写错了还是里面有什么特殊的逻辑处理?