9 years, 8 months ago.

using NVIC_DisableIRQ with K64F

I ma trying to get buffered interrupt driven serial comms working on the K64F board. To disable interrupts, I eventually discovered the the syntax is:

NVIC_DisableIRQ(UARTx_TX_RX_IRQn)

where 'x' is UART number (1 to 4).

Most references to 'NVIC_DisableIRQ' just give 'UARTx_IRQn" as the argument.

Is there a place one can find this sort of information (apart from rooting through other folk's code)? It would save me a lot of time.

Thanks...

1 Answer

9 years, 8 months ago.

For BufferedSerial have a look at: http://mbed.org/users/sam_grove/code/BufferedSerial/

In the relevant register map file for each target the IRQ numbers are also defined. For the K64 this is at: http://mbed.org/users/mbed_official/code/mbed-src/file/0e58554f11d5/targets/cmsis/TARGET_Freescale/TARGET_K64F/MK64F12.h