HT32 库函数基础
1
目录
1、 库函数使用的基本数据类型........................................................................................1
1.1、 缩写词....................................................................................................................1
1.2、 变量的数据类型....................................................................................................1
1.3、 枚举........................................................................................................................2
1.4、 外设模块控制寄存器数据结构类型....................................................................3
1.5、 外设寄存器声明....................................................................................................4
2、 CKCU 库函数..................................................................................................................5
2.1、 时钟函数一览........................................................................................................5
2.2、 库函数说明............................................................................................................6
2.2.1、 CKCU_APBPeripClockConfig 函数...................................................................6
2.2.2、 CKCU_APBPerip0ClockConfig 函数...............................................................7
2.2.3、 CKCU_APBPerip1ClockConfig 函数................................................................7
3、 GPIO 库函数..................................................................................................................8
3.1、 GPIO 库函数一览...................................................................................................8
3.2、 库函数说明............................................................................................................9
3.2.1、 AFIO_DeInit.....................................................................................................9
3.2.2、 AFIO_EXTISourceConfig..................................................................................9
3.2.3、 AFIO_GPAConfig...........................................................................................10
3.2.4、 GPIO_ClearOutBits........................................................................................11
3.2.5、 GPIO_DeInit..................................................................................................12
3.2.6、 GPIO_DirectionConfig...................................................................................12
3.2.7、 GPIO_DriveConfig.........................................................................................13
3.2.8、 GPIO_InputConfig.........................................................................................13
3.2.9、 GPIO_IsPinLocked.........................................................................................13
3.2.10、 GPIO_IsPortLocked.......................................................................................14
3.2.11、 GPIO_OpenDrainConfig................................................................................14
3.2.12、 GPIO_PinLock................................................................................................14
3.2.13、 GPIO_PullResistorConfig...............................................................................15
评论0