![](https://img-blog.csdnimg.cn/img_convert/dc332479cb26a3c8318a00314573ad0b.png)
![](https://img-blog.csdnimg.cn/img_convert/19cef9926873adf2c8c1ce0cb85e62f3.png)
或者绝对路径也可以,就不用设置里定义了
![](https://img-blog.csdnimg.cn/img_convert/b138a0503a6bc31d7cf9a3edcdefa825.png)
![](https://img-blog.csdnimg.cn/img_convert/58713279ad67832098231f2e3b4eb001.png)
就是针对具体的一个板写的,只是用于某块具体的板,是一种标识
![](https://img-blog.csdnimg.cn/img_convert/477f805de449e1dbe22af6255211fb07.png)
![](https://img-blog.csdnimg.cn/img_convert/3661779b4e48dfe3205c4a7c28377b94.png)
![](https://img-blog.csdnimg.cn/img_convert/126233727b108636b82d6a3c644ac8a8.png)
勾选这个选项就能出来代码预测提示
![](https://img-blog.csdnimg.cn/img_convert/fb1d2d4edf352d2fab03f899558e36a5.png)
结构体名称去相应的固件库的c文件里找,能选的参数也在定义里有过了,不用去查手册了
![](https://img-blog.csdnimg.cn/img_convert/1a4cfd07deafb77fb17ebdfc6af89c72.png)
![](https://img-blog.csdnimg.cn/img_convert/e0ef88809e2e733a665e9c4872f86924.png)
c里面的函数名放到h文件里声明一下
![](https://img-blog.csdnimg.cn/img_convert/77c918977b2fd06ab5e8cae519bd88d0.png)
再到main里调用一下头文件,然后再在main里调用函数
![](https://img-blog.csdnimg.cn/img_convert/f4ce8182569668566400f68ab706a4f7.png)
附加题:
![](https://img-blog.csdnimg.cn/img_convert/8091a66e6edae98cb2f2a6eb2b41bed6.png)
优化代码→继续添加宏
![](https://img-blog.csdnimg.cn/img_convert/b23caa56e3b1bba926b0f0573e1e168f.png)
GPIO_pin_1改成LED1_GPIO_PIN
或者绝对路径也可以,就不用设置里定义了
就是针对具体的一个板写的,只是用于某块具体的板,是一种标识
勾选这个选项就能出来代码预测提示
结构体名称去相应的固件库的c文件里找,能选的参数也在定义里有过了,不用去查手册了
c里面的函数名放到h文件里声明一下
再到main里调用一下头文件,然后再在main里调用函数
附加题:
优化代码→继续添加宏
GPIO_pin_1改成LED1_GPIO_PIN