6 years, 2 months ago.

For Nucleo F401RE where is the enum IRQn_Type definined?

Hello,

A very basic questions: Where is the type IRQn_Type defined?

It could be in the file cmsis_nvic.h, but I don't find this file either. I looked for it in the code repository here: https://os.mbed.com/users/mbed_official/code/mbed/file/5571c4ff569f/TARGET_NUCLEO_F401RE/

I'm using the mbed web interface for programming. I find it most difficult searching for items like type definitions or macros. It seems the repository doesn't have a search function either. Please correct me if I'm wrong.

Thus the more important question to me is: how would I search efficiently in the mbed.com environment?

Thanks for any help. Andreas

2 Answers

6 years, 2 months ago.

All of the code is stored here in github: https://github.com/ARMmbed/mbed-os You can do a search from there but you'll find that some definitions like the one you are searching for are used across all platforms and thus return hundreds of hits. Another choice is to fork this repository and import into your project. You can trim off the unneeded directories and then do a local search. That is how I do my development.

Accepted Answer

Zoltan and Bill, thanks for your answers. Helpful and appreciated.

posted by Andreas Isenegger 21 Feb 2018
6 years, 2 months ago.

Hello Andreas,

I agree with you. The online mbed IDE lacks project wise search utility.
So the best way is to do it offline. The IRQn_Type for the NUCLEO-F401RE is defined in mbed/file/5571c4ff569f/TARGET_NUCLEO_F401RE/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/device/stm32f401xe.h

Best regards,

Zoltan