platform driver writing under the device tree

1, Introduction to platform driver under device tree platform driver framework is divided into bus, device and driver. The bus does not need to be managed by driver programmers. This is provided by Linux kernel. When writing drivers, we just need to focus on the specific implementation of devices and drivers. In the Linux kernel without d ...

Posted by whatwhat123 on Thu, 30 Dec 2021 22:01:43 +0100

Intelligent gate system of parking lot (qt)

demand This project is a three-level project at the end of the term, which was completed by my roommate and I in a team. Among them, I am responsible for Baidu identification, camera acquisition, time display and code integration Design The functions of the project include: the camera obtains the license plate number, screenshots and a ...

Posted by Ekate on Thu, 30 Dec 2021 01:36:53 +0100

DialogBLE chip: OTP read / write, otphader

The BLE chip of Dialog basically has OTP (one time programmable) memory, that is, the memory written at one time. Once written, it cannot be modified. For example, DA14531 has 32KB OTP memory. It is mainly used to write curing programs and save some important factory parameters. The following mainly describes how to read and write OTP memory an ...

Posted by iii on Wed, 29 Dec 2021 16:49:51 +0100

linux blocking and non blocking IO experiments

1, Blocking and non blocking IO Blocking and non blocking IO are two common device access modes in Linux driver development. Blocking and non blocking must be considered when writing drivers. In this chapter, we will learn about blocking and non blocking IO, how to deal with blocking and non blocking in the driver, and how to use wait que ...

Posted by interface on Wed, 29 Dec 2021 08:55:58 +0100

Interprocess communication (IPC): nameless pipe and named pipe

Nameless pipe ❤️ ❤️ ❤️ Pipe is also called anonymous pipe. It is the oldest form of IPC (interprocess communication) in UNIX system. All UNIX systems support this communication mechanism.When the parent process calls the pipe function, the kernel will create a cache in the kernel space when executing the pipe function. This cache is the ...

Posted by mraza on Tue, 28 Dec 2021 17:22:29 +0100

STM32 vernacular tutorial built-in key module and external key detection let you understand the key module

What input mode is used to detect the input level signal? Simply remember: Detection port input low level 0 requires pull-up GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; Detection port input high level 1 needs to use pull-down GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPD; You don't know the schematic diagram of your external key and wha ...

Posted by ifubad on Tue, 28 Dec 2021 00:03:00 +0100

Interpretation of STM32F103 super long article [STM32 accessing external flash]

Learning board: STM32F103ZET6 Previous Blogs: STM32F103 five minute introduction series (I) running lamp (library function + register) + Plus programming template + GPIO summary STM32F103 five minute entry series (II) seven registers of GPIO + GPIOx_LCKR function and configuration STM32F103 five minute introduction series (III) summary of co ...

Posted by kutyadog on Mon, 27 Dec 2021 22:12:05 +0100

The simplest DIY intelligent color lamp based on ESP8266 ② (RGB lamp is controlled by buttons and sliding bars on Web pages)

ESP8266 and ESP32 intelligent lantern development series article directory Part 1: the simplest DIY intelligent color lamp ① based on ESP8266 (use the button to light up the ordinary RGB lamp on the web page) Part 2: the simplest DIY intelligent color lamp based on ESP8266 ② (RGB lamp is controlled by buttons and sliding bars on Web pages) ...

Posted by scanreg on Mon, 27 Dec 2021 18:08:12 +0100

Hierarchical design of C language log

Original link: https://blog.csdn.net/dosthing/article/details/82828937 preface C language is a process oriented programming language. Its program design process is to write a series of functions according to the business requirements of the upper layer, supplemented by if, for, while, switch and other process control statements to realize ...

Posted by cwncool on Mon, 27 Dec 2021 02:13:16 +0100

STM32 AS608 optical fingerprint module driver (common to HAL library and standard library)

working principle: If you want to look at the code directly, you can skip the principle, turn down directly, and then the code at the end AS608 mainly communicates through serial port 1. Buffer and fingerprint database The system is equipped with a 72K byte image buffer and two 512 bytes feature file buffers, named ImageBuffer, CharBuffer1 and ...

Posted by munuindra on Sun, 26 Dec 2021 01:51:31 +0100