当前位置:网站首页>STM32 reads IO high and low level status
STM32 reads IO high and low level status
2022-06-27 04:59:00 【The Embers】

With PC13 For example :
If it is set to input :
GPIO_ReadInputDataBit(GPIOC,GPIO_Pin_13);// Read input port PC13 value
If set to output :
GPIO_ReadOutputDataBit (GPIOC,GPIO_Pin_13); // Read input port PC13 value
I look at the original function , The difference between the two read functions is that the read registers are different , Namely :
GPIOx->IDR
GPIOx->ODR
边栏推荐
猜你喜欢
随机推荐
Edge在IE模式下加载网页 - Edge设置IE兼容性
neo4j community与neo4j desktop冲突
Microservice system design -- distributed transaction service design
微服务系统设计——统一鉴权服务设计
022 basics of C language: C memory management and C command line parameters
How to make ef core 6 support dateonly type
Cultural tourism light show breaks the time and space constraints and shows the charm of night tour in the scenic spot
Redis高可用集群(哨兵、集群)
math_ Number set (number set symbol) and set theory
第2章 关键技术介绍
009 basics of C language: C loop
[array]bm94 rainwater connection problem - difficult
006 C language foundation: C storage class
微服务系统设计——分布式锁服务设计
系统架构设计——互联网金融的架构设计
In a sense, the Internet has become an incubator and a parent
017 C语言基础:位域和typedef
013 basics of C language: C pointer
How pychart installs packages
关于元器件封装的一些文章和一下我的体会









