没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/release/download_crawler_static/11607646/bg1.jpg)
![](https://csdnimg.cn/release/download_crawler_static/11607646/bg2.jpg)
郭旺景 根据蓝精灵软件整理
![](https://csdnimg.cn/release/download_crawler_static/11607646/bg3.jpg)
总 目 录
输入输出接口 GPIO……………………………………………………
…………
1
实时时钟 CLK…………………………………………………………
…………
12
模拟数字转换器 AD1…………………………………………………
……………
…
…
31
模拟数字转换器 AD2…………………………………………………
……………
…
…
49
自动唤醒 AWU…………………………………………………………
…………
63
外部中断 EXTI…………………………………………………………
…………
69
蜂鸣器 BEEP……………………………………………………………
………
75
局域网控制 CAN………………………………………………………
……………
78
程序存储器 FLASH……………………………………………………
……………
…
104
总线控制 IIC…………………………………………………………
…………
120
中断控制 ITC…………………………………………………………
…………
136
独立看门狗 IWDG………………………………………………………
……………
142
复位 RST………………………………………………………………
……………
…
…
147
串行外设接口 SPI……………………………………………………
……………
…
150
16位高级定时器 TIM1…………………………………………………
……………
…
…
165
16位通用定时器 TIM2…………………………………………………
……………
…
…
233
16位通用定时器 TIM3…………………………………………………
……………
…
…
270
8位通用定时器 TIM4…………………………………………………
……………
…
…
303
16位通用定时器 TIM5…………………………………………………
……………
…
…
315
8位通用定时器 TIM6…………………………………………………
……………
…
…
354
通用异步收发器 UART1………………………………………………
……………
…
……
371
通用异步收发器 UART2………………………………………………
……………
…
……
390
通用异步收发器 UART3………………………………………………
……………
…
……
406
窗口看门狗 WWDG………………………………………………………
……………
423
附录 思修祥云小王子开发板
………………………………………
……
428
![](https://csdnimg.cn/release/download_crawler_static/11607646/bg4.jpg)
输入输出接口 GPIO
1 函数GPIO_Init……………………………………………………
………………
2
2 函数GPIO_DeInit…………………………………………………
………………
…
4
3 函数GPIO_Write
……………………………………………………
……………
…
5
4 函数GPIO_WriteHigh………………………………………………
……………
………
6
5 函数GPIO_WriteLow………………………………………………
………………
……
7
6 函数GPIO_WriteReverse…………………………………………
………………
…………
8
7 函数GPIO_ReadInputData…………………………………………
……………
……………
9
8 函数GPIO_ReadOutputData………………………………………
………………
……………
9
9 函数GPIO_ReadInputPin…………………………………………
………………
…………
10
10 函数GPIO_ExternalPullUpConfig………………………………
………………
……………………
11
1
1
![](https://csdnimg.cn/release/download_crawler_static/11607646/bg5.jpg)
1
函数 GPIO_Init
Table 29. 描述了函数 GPIO_Init
Table 29. 函数 GPIO_Init
函数名 GPIO_Init
函数原形 Void GPIO_Init(GPIO_TypeDef* GPIOx,
GPIO_Pin_TypeDef GPIO_Pin,
GPIO_Mode_TypeDef GPIO_Mode)
功能描述 根据 GPIO_Pin_TypeDef GPIO_Pin,GPIO_Mode_TypeDef GPIO_Mode
中指定的参数初始化外设 GPIOx 寄存器
输入参数 1 GPIOx:x 可以是 A,B,C,D,E,F,G,H 或者 I,来选择 GPIO 外设
输入参数 2 GPIO_Pin_TypeDef GPIO_Pin:包含了外设 GPIOx 的管脚的配置信息
输入参数 3 GPIO_Mode_TypeDef GPIO_Mode:包含了外设 GPIOx 用以设置选中管脚的工作状
态
输出参数 无
返回值 无
先决条件 无
被调用函数 无
GPIO_Pin
该参数选择待设置的 GPIO 管脚,使用操作符“|”可以一次选中多个管脚。可使用下表中的
任意组合。
Table 30. GPIO_Pin 值
GPIO_Pin 描述
GPIO_Pin_0 选中管脚 0
GPIO_Pin_1 选中管脚 1
GPIO_Pin_2 选中管脚 2
GPIO_Pin_3 选中管脚 3
GPIO_Pin_4 选中管脚 4
GPIO_Pin_5 选中管脚 5
GPIO_Pin_6 选中管脚 6
GPIO_Pin_7 选中管脚 7
GPIO_Pin_LNIB 选择管脚 0~3
GPIO_Pin_HNIB 选择管脚 4~7
GPIO_Pin_ALL 选择全部管脚
GPIO_Mode
GPIO_Mode 用以设置选中管脚的工作状态。Table 31. 给出了该参数可取的值
Table 31. GPIO_Mode 值
GPIO_Mode 描述
GPIO_MODE_IN_FL_NO_IT 浮动输入无中断功能
GPIO_MODE_IN_PU_NO_IT 上拉输入无中断功能
GPIO_MODE_IN_FL_IT 浮动输入有中断功能
GPIO_MODE_IN_PU_IT 上拉输入有中断功能
2
2
剩余437页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- zcguoji2021-04-07是库函数说明,但是不像是官方的那种,不过学习够用了
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
zou295
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)