..\stm32_driver\src\stm32f10x_gpio.c(466): warning: #223-D: function "assert_param" declared implicitly
时间: 2023-12-13 09:06:11 浏览: 182
这个警告是由于在文件中使用了 `assert_param()` 函数,但是该函数的声明不在该文件中。通常来说,这个函数是在 `stm32f10x_conf.h` 文件中声明的。因此,你需要确保在 `stm32f10x_gpio.c` 文件中包含了 `stm32f10x_conf.h` 文件。如果已经包含了该文件但是仍然出现警告,你也可以在 `stm32f10x_gpio.c` 文件的开头添加以下代码来显式声明该函数:
```c
void assert_param(int);
```
这样就可以消除该警告了。
阅读全文
相关推荐
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)