STC12初始化GPIO函数.rar

时间:2023-01-13 16:27:57
【文件属性】:
文件名称:STC12初始化GPIO函数.rar
文件大小:44KB
文件格式:RAR
更新时间:2023-01-13 16:27:57
stc12系列 STC12系列单片机GPIO初始化函数 跟STM32固件库一样配置GPIO口 /******************** IO配置函数 **************************/ void GPIO_config(void) { GPIO_InitTypeDef GPIO_InitStructure; //结构定义 GPIO_InitStructure.Pin = GPIO_Pin_0 | GPIO_Pin_1; //指定要初始化的IO, GPIO_Pin_0 ~ GPIO_Pin_7, 或操作 GPIO_InitStructure.Mode = GPIO_PullUp; //指定IO的输入或输出方式,GPIO_PullUp,GPIO_HighZ,GPIO_OUT_OD,GPIO_OUT_PP GPIO_Init(GPIO_P3,&GPIO_InitStructure); //初始化 }
【文件预览】:
GPIO
----Output()
----Source()
--------config.h(1KB)
--------main.c(186B)
--------stc12xxxx.h(31KB)
--------gpio.h(838B)
--------gpio.c(2KB)
--------config.c(879B)
----Doc()
----Project()
--------config.lst(2KB)
--------gpio.obj(27KB)
--------gpio.uv2(0B)
--------gpio.lnp(59B)
--------main.lst(1KB)
--------config.obj(23KB)
--------main.obj(24KB)
--------gpio.lst(5KB)
--------gpio.M51(23KB)
--------gpio(74KB)

网友评论