工具/软件:
您好专家
客户希望 使用一个 API 一次禁用多个 IQR、但我们的 drivelib 似乎只具有 NVIC_DisableIRQ () 来一次禁用一个 IRQ、drivelib 是否有其他函数来满足这一需求?

谢谢
Joe
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.
工具/软件:
您好专家
客户希望 使用一个 API 一次禁用多个 IQR、但我们的 drivelib 似乎只具有 NVIC_DisableIRQ () 来一次禁用一个 IRQ、drivelib 是否有其他函数来满足这一需求?

谢谢
Joe
您好 Joe、
根据它们使用的编译器、这些函数在 cmsis_x.h 文件中定义、其中 x 是编译器。 例如、在 CMSIS_gcc.h 中、定义如下:

对于 TI Clang (CMSIS_CCS.h)、其外观如下所示:

ARM 文档对于您查看以下内容也可能很有用: https://developer.arm.com/documentation/dui0662/b/Cortex-M0--Peripherals/Nested-Vectored-Interrupt-Controller/NVIC-usage-hints-and-tips
此致、
Owen