This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Implicit declaration is invalid warning for __set_BASEPRI() function in Keil

I'm trying to use a __set_BASEPRI function in Keil to set up interrupts in STM32F407 but the IDE shows warning "implicit declaration of function '__set_BASEPRI' is invalid in C99". The code compiles without any warnings or errors but the function doesn't work. I'm having the same issue with some other functions from cmsis_armcc.h. However, functions like __enable_irq and __disable_irq and a few other functions work fine.

How do I make the rest of the functions work? I tried a fresh Keil install on another PC and everything works fine, so this is probably an IDE problem, not my code. Reinstalling Keil (with manually deleting Arm folder) on my PC didn't help.

Also weird, when I click on "Go to definition" on all these functions, the IDE cannot find the source file for them.

0