当前位置:网站首页>1. Mx6u bare metal program (4) - GPIO module
1. Mx6u bare metal program (4) - GPIO module
2022-06-23 01:48:00 【Chongyou research Sen】
The difference here is :
(1) Engineering management
(2)GPIO modularization , It's like stm32 equally .

This is a GPIO Initialization function , Examples of input parameters are included (GPIO1,3,&led_config), Denotes initialization GPIO1 The third triangle of , And initialized led The structure of the body , Through this structure, initialization can be carried out, including input and output , High and low level . as follows :

Here is initialization GPIO1 Triangle of is output , And output low level .
GPIO The pin reads the potential value function ( Used to judge whether the key is pressed )

for example , The key judgment here is realized through this function

GPIO Pin write potential value function ( Used to control the output level )

for example : There is no change in the control register led Output , Instead, write directly through this function

summary :
adopt GPIO The module can realize that the register is no longer manipulated , It's simpler , Don't remember the register location
边栏推荐
- MySQL -- how to access the database of a computer in the same LAN (prenatal education level teaching)
- Pat class A - 1007 maximum subsequence sum
- Epoll introduction and principle explanation
- Summary of the first week of winter vacation
- 3D打印微组织
- Operator part
- //1.7 use of escape characters
- C. Diluc and Kaeya——Codeforces Round #724 (Div. 2)
- Bubble sort - double for implementation
- Bc117 xiaolele walks up the steps
猜你喜欢

Foundation Consolidation - Flex width is content width

Unique in Pimpl_ PTR compilation errors and Solutions

Lexical Sign Sequence

JS - single sign on

Autumn move script a

There are animation characters interacting with each other when the mouse slides in the web page

Binary String

Debian10 configuring rsyslog+loganalyzer log server

Using WordPress to create a MySQL based education website (learning notes 2) (technical notes 1) xampp error1045 solution

6. const usage, combination of first and second level pointers
随机推荐
[Title Fine brushing] 2023 Hesai FPGA
Data skew analysis of redis slice cluster
C. Diluc and Kaeya——Codeforces Round #724 (Div. 2)
Bc110 tic tac toe chess
Why can't I access object properties in a for in loop in an object array
Openvino CPU acceleration survey
Autumn move script B
Sfod: passive domain adaptation and upgrade optimization, making the detection model easier to adapt to new data
//1.11 basic operators
Vector 6 (inheritance)
2D prefix and
Cmake simple usage
Using WordPress to create a MySQL based education website (learning notes 2) (technical notes 1) xampp error1045 solution
LeetCode 206. Reverse linked list (iteration + recursion)
//1.9 char character variable operation
Pat class A - 1012 the best rank (PIT)
Debian10 LVM logical volumes
Express framework installation and start service
Vector 3 (static member)
How are pub and sub connected in ros1?