Where is LPC17xx.h?

16 Apr 2012

I want to try to disable/enable the interrupt from the USBRX input to see if this fixes a problem I am having. I have found many references to a LPC17xx.h header file, in particular this one that sounds as though it could be of interest to me:

"To disable a specific interrupt, use NVIC_DisableIRQ() (e.g. NVIC_DisableIRQ(UART0_IRQn)). You can find the interrupt numbers in LPC17xx.h."

But I have not been able to find this file or been able to determine the received data interrupt number or how to specify it. I blindly tried replacing n with 2 based on a wild guess from the chip data sheet. But UART0_IRQ2 is not found by the compiler.

I would appreciate any pointers that might allow me to disable/enable the UART0 received data interrupt.

Thanks.

Chuck, W5UXH

16 Apr 2012

http://mbed.org/projects/libraries/svn/mbed/trunk/LPC1768/LPC17xx.h?rev=24 should go to it

In the compiler window open a project, click on the mbed library icon on the left, and then click open library on the right to explore and find files.

16 Apr 2012

Great, exactly the information I needed. I had never noticed the "open library" so that is very useful to learn. Also, after a few stumbles with the syntax, I succeeded in disabling the interrupt and it fixed my problem.

Many thanks for the prompt answer to my problem! (I am very new to mbed so lots to learn.)

jim hamblen wrote:

http://mbed.org/projects/libraries/svn/mbed/trunk/LPC1768/LPC17xx.h?rev=24 should go to it

In the compiler window open a project, click on the mbed library icon on the left, and then clock open library on the right to explore and find files.