A development method of embedded linux serial port driver based on blocking receiving mechanism
A serial port driver and embedded technology, which is applied in the field of Linux serial port driver development, can solve communication frame loss and other problems, achieve the effect of solving frame loss problem, improving data communication accuracy and real-time data processing performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0040] The present invention will be described in further detail below in conjunction with the accompanying drawings, so that the solutions recorded in the present invention can be more easily understood.
[0041] Such as Figure 1-Figure 2 As shown, the present invention discloses a method for developing an embedded Linux serial port driver based on a blocking receiving mechanism, and the method is implemented by adopting the following steps.
[0042] Step 1. The Linux serial port driver is designed with a character device framework, namely:
[0043]1) Define a structure file_operationsmyuart_fops, and add open, read, write, close, ioctl functions to the structure;
[0044] 2) Define the device name and register the device with the kernel;
[0045] 3) Define serial port registers and perform virtual address mapping, configure registers and pins;
[0046] 4) Declare the serial port sleep waiting queue, initialize it in the open function, and apply for the serial port receiv...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

