Foreword This chapter introduces the driver addition and testing of mpu6050. The driver does not use the driver provided by the sdk. On the one hand, you need to configure the irq. On the other hand, you can learn how to add the driver through the ko method. 1. Reference articles Driver and test file […]
Tag: drive
[milkv] 1. Light sensor bh1750 driver addition and testing
Foreword This chapter introduces adding the light sensor bh1750 to the milkv-duo development board and implementing application layer testing. 1. View circuit diagram 1.1 duo development board i2c pins https://github.com/milkv-duo/duo-files These are the pins that can be used as i2c Note: gpio0 and 1 in the circuit diagram correspond to gpio28 and 29 on the […]
ESP32/ESP8266 drives 1.8″tft_oled screen imitation digital tube clock based on Arduino framework
ESP32/ESP8266 drives 1.8″tft_oled screen imitation digital tube clock based on Arduino framework Related article “ESP32 drives I2C OLED time display based on U8g2 under Arduino framework” Effect demonstration: The screen display part uses the TFT_eSPI library driver and uses the unique font display that comes with the library. The screen adopts 128*160 1.8″tft_Oled screen. This […]
2.3 Windows driver development: kernel string conversion method
In kernel programming, strings have two formats: ANSI_STRING and UNICODE_STRING. These two formats are safe versions of string structures introduced by Microsoft and are also formats recommended by Microsoft. , usually the type represented by ANSI_STRING is char *, which is a string in multi-byte mode of ANSI, and UNICODE_STRING represents wchar*, which is a […]
HP203B air pressure temperature sensor driver
Without further ado, let’s get straight to the code. The device tree code is as follows. It should be noted that the I2C device address described in the device is 7 bits, not 8 bits. Otherwise, the I2C subsystem will prompt that the device cannot be found when initializing. i2c3: i2c@50008c00 { compatible = “xxx-i2c3”; […]
2.2 Windows driver development: kernel spin lock structure
When it comes to spin locks, we must talk about linked lists. In the previous article “Linked Lists and Structures in the Kernel”, we simply used the linked list structure to store the process information list. I believe readers should have understood it. The basic use of kernel linked lists. This article will explain the […]
Zhengdian Atom embedded Linux driver development – Linux DAC driver
In the last note, I learned about the ADC driver. STM32MP157 also has DAC peripherals. The IIO driver framework also used by DAC. In this chapter, we will learn how to use the DAC on STM32MP157 under Linux as follows. Introduction to DAC ADC is an analog-to-digital converter, responsible for converting external analog signals into […]
[linux kernel] Linux uart driver framework analysis
Article directory 1. Low-level serial hardware driver 2. Console support 3. Lock support 4. Core data structure 1. struct uart_driver 2.struct uart_port 3. struct uart_ops 4. Summary of commonly used APIs 5. Analysis of uart driver examples 1. Original factory designed uart driver 2. 8250 standard uart driver 6. Summary 【linux kernel series articles】 The […]
Embedded Linux development—UART serial communication driver hardware programming
0. Basic preparation of serial port In embedded systems, many devices can be controlled through serial ports, such as WiFi, Bluetooth, RFID, etc., so using serial ports in embedded devices is particularly important. First, a few concepts are briefly clarified. RS232, RS485 and TTL refer to electrical level standards. Generally speaking, TTL uses 0V to […]
selenium/webdriver operating principle and mechanism
I’ve been looking at some low-level stuff recently. Driver translates as driver, meaning driver. If you compare webdriver to a driver, it is very appropriate. We can compare WebDriver driving a browser to a taxi driver driving a taxi. There are three roles when driving a taxi: · Passenger: He/she tells the taxi driver where […]