Library-Based Embedded Device Driver Development

Library-Based Embedded Device Driver Development

Follow and star our public account to access exciting content Source: The Last Bug Some friends asked me how to write excellent C code. This cannot be explained in just a few sentences. Excellent code is bound to be the crystallization of various programming techniques and design philosophies, so it requires step-by-step accumulation of methods … Read more

The ‘Library’ Concept in Embedded Device Drivers

The 'Library' Concept in Embedded Device Drivers

I'm Lao Wen, an embedded engineer who loves learning. Follow me, and let's become better together! How to write excellent C code? Excellent code is a crystallization of various programming techniques and design ideas, so it requires step-by-step accumulation. I’m sharing this article on building the ‘library’ concept for everyone to experience. What if device … Read more

Overview of Linux Device Drivers: Ethernet and PCI

Overview of Linux Device Drivers: Ethernet and PCI

Ethernet The Ethernet interface consists of MAC (Media Access Controller) and PHY (Physical Interface Transceiver). The Ethernet MAC is defined by the IEEE 802.3 Ethernet standard, implementing the data link layer. Common MACs support two rates of 10Mbit/s or 100Mbit/s. Gigabit Ethernet (also known as 1000Base-T) is the next generation technology of Fast Ethernet, increasing … Read more

A Brief Discussion on Linux PCI Device Drivers (Part 1)

A Brief Discussion on Linux PCI Device Drivers (Part 1)

Click on the top“Baiwen Technology”, select the top public account Embedded essentials delivered promptly —— Author | linuxdrivers Source | https://blog.csdn.net/linuxdrivers/article/details/5849698 A student suggested writing about PCI drivers, and today I found a long article that is one of the most detailed blogs on PCI available online. It is divided into two parts, and this … Read more

Understanding RTT UART Device Driver Framework

Understanding RTT UART Device Driver Framework

Click on the above “Embedded Miscellaneous“, select “Pin to Top” to view programming notes at the first opportunity! Introduction to UART The STM32 chip has multiple USART peripherals for serial communication, which stands for Universal Synchronous Asynchronous Receiver and Transmitter. It can flexibly perform full-duplex data exchange with external devices. Unlike USART, it also has … Read more

Building the ‘Library’ Concept for Embedded Device Drivers

Building the 'Library' Concept for Embedded Device Drivers

How to write excellent C code? Excellent code is undoubtedly the crystallization of various programming techniques and design philosophies, so it requires step-by-step accumulation. Here I share this article on building the ‘library’ concept, and everyone can experience it. What if device programs were perfectly library-based? 1. All engineers would spend minimal effort when porting … Read more

Understanding Character Device Drivers and Their Relationships

Understanding Character Device Drivers and Their Relationships

In the process of developing Linux device drivers, one naturally encounters concepts and technologies related to character device drivers, platform device drivers, device driver models, and sysfs. This can be quite confusing for beginners, and even for engineers with a certain foundation in Linux, it is relatively commendable to have a good understanding of these … Read more