Table of Contents eBPF in Android Android eBPF kprobe dma code Define a MAP Define a PROG bpfprogs/Android.bp test program bpfprogs/memstats/Android.bp bpfprogs/memstats/MemStats.h bpfprogs/memstats/MemStats.cpp bpfprogs/memstats/MemStatsMain.cpp Compile and run Result analysis summary eBPF in Android Official website: https://source.android.com/docs/core/architecture/kernel/bpf?hl=zh-cn#tracepoints The official Android website has a more detailed introduction. For official examples of using eBPF in Android, you can […]
Tag: dma
Serial communication based on interrupt/DMA mode
1. Introduction to serial port interrupts 1. Serial port sending/receiving function HAL_UART_Transmit(); Serial port sends data, using timeout management mechanism HAL_UART_Receive(); The serial port receives data and uses the timeout management mechanism HAL_UART_Transmit_IT(); Serial port interrupt mode transmission HAL_UART_Receive_IT(); Serial port interrupt mode reception HAL_UART_Transmit_DMA(); Serial port DMA mode transmission HAL_UART_Transmit_DMA(); Serial port DMA mode […]
Serial communication based on interrupt DMA
Article directory 1. Configure this project through stm32CubeMX 1Set up RCC 2Set up SYS 3Set up USART 4Set up NVIC 5 clock tree 6Create a project. 2 keil debugging 3. Burn and check the effect Configure this project through stm32CubeMX 1Set RCC High Speed Clock Select Crystal. 2Set SYS Debug select Serial wire. 3Set USART […]
Serial communication based on interrupt/DMA mode
Experimental tasks: Understand the serial port protocol and RS-232 standard, as well as the difference between RS232 level and TTL level; understand the working principle of the “USB/TTL to 232” module (taking the CH340 chip module as an example). Use the HAL library (or standard library) method to set the USART1 baud rate to 115200, […]
STM32F103, DMA data transfer and two methods for use with AD multi-channel
1. Process of configuring MDA: 1. Turn on the RCC clock 2. Initialize DMA: configure the starting address of its peripherals and memory, data width, whether the address is incremented, their direction, how many channels there are, the cycle mode of DMA, configure the trigger mode, priority, and the last step is to enable DMA […]
Interrupt mode and DMA mode complete serial communication
Article directory 1. Basic introduction to DMA 2. Complete tasks by interrupting 1. Use STM32CubeMX to create a new project 2. Code writing 3. Hardware implementation 3. Complete the task using DMA method 1. Use STM32CubeMX to create a new project 2. Code writing 3. Demonstration of running results 4. Reference materials 1. Basic introduction […]
GD32L23X USART+DMA idle interrupt to send and receive data
GD32L23X USART + DMA idle interrupt to send and receive data DMA + USART1 sends and receives data Idle interrupt function and macro definition USART1 Understanding of hardware flow control concepts (need to add two more lines) DMA DMA direct memory access controller DMAMUX basic functions printf redefinition DMA + USART1 sends and receives data […]
[STM32 uses the HAL library to implement DMA mode serial port to send and receive data, logic simulator, and baud rate calculation]
Write the directory title here 1. Introduction to DMA 1. DMA four transmission paths 2. Core parameters 3. DMA channel resources in STM32 4. DMA workflow (1) Kernel workflow without DMA (4) DMA transfer mode (5) Arbiter and priority (6) DMA interrupt Create CubeMX project main code Effect demonstration! [Insert picture description here](https://img-blog.csdnimg.cn/82410eb5a84b4e3a92f52a9d0fd6cc76.png) Logic simulator […]
Serial communication based on interrupt/DMA mode
1. Introduction to serial communication protocol and RS-232 and the working principle of USB/TTL to 232 module 1. Serial protocol and RS-232 standard: (1) Serial port protocol: Serial Communication is a very commonly used serial communication method between devices. Because it is simple and convenient, most electronic devices support this communication method. Electronic engineers often […]