STM32F446RE新建工程,可通过编译,但代码上显示错误

1.STM32F446库函数版新建好工程后,出现:
error:use of undeclared identifier 'GPIO_Pin_5'
warning:implicit declaration of function 'GPIO_ResetBits'is invalid in C99
但是可以通过编译并且可以往板子下载程序。

img

2.RCC_AHB1PeriphClockCmd()代码无法补全

img

给解决一下

那个代码提醒有时会出现不同步的问题,已编译器为准

编辑器的bug。MDK的编辑器本来也不好用,就不要去折腾了,换VSCode之类的编辑吧。