add 09_UART/08

This commit is contained in:
weidongshan
2021-07-22 21:03:41 +08:00
parent 4bba1ca16f
commit b841ad8bfd
10 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
## UART驱动情景分析_注册
参考资料
* 参考代码:
```shell
硬件相关:
drivers/tty/serial/imx.c
drivers/tty/serial/stm32-usart.c
串口核心层:
drivers/tty/serial/serial_core.c
TTY层:
drivers/tty/tty_io.c
```
### 1. 情景分析大纲
* 注册过程分析
* open过程分析
* read过程分析
* write过程分析
### 2. 源码框架回顾
![image-20210722145518292](pic/09_UART/24_tty_driver_level_2.png)
### 3. 注册过程分析
![image-20210722144332774](pic/09_UART/23_uart_driver_register.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

View File

@@ -339,7 +339,13 @@ git clone https://e.coding.net/weidongshan/linux/doc_and_source_for_drivers.git
```shell
07_字符设备驱动程序的另一种注册方法
```
* 2021.07.22 发布"UART子系统"
```shell
08_UART驱动情景分析_注册
```
## 6. 联系方式
* 官网http://www.100ask.net

View File

@@ -0,0 +1,39 @@
## UART驱动情景分析_注册
参考资料
* 参考代码:
```shell
硬件相关:
drivers/tty/serial/imx.c
drivers/tty/serial/stm32-usart.c
串口核心层:
drivers/tty/serial/serial_core.c
TTY层:
drivers/tty/tty_io.c
```
### 1. 情景分析大纲
* 注册过程分析
* open过程分析
* read过程分析
* write过程分析
### 2. 源码框架回顾
![image-20210722145518292](pic/09_UART/24_tty_driver_level_2.png)
### 3. 注册过程分析
![image-20210722144332774](pic/09_UART/23_uart_driver_register.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB