Experiment 6 of deep understanding computer system (CSAPP) - Malloc Lab

This experiment is too, too, too difficult! I can't write it myself. After reading two articles by two big men, I found out. Directly paste the two articles of the boss. One is implemented with an implicit linked list, and the other is implemented with a display linked list. Implicit free linked list The job is compiled into a 32-bit ...

Posted by anonymouse on Sat, 25 Dec 2021 10:47:58 +0100

MCU: NEC protocol infrared remote controller

NEC protocol infrared remote controller The communication distance of home appliance remote controller is often not high, and the cost of infrared is much lower than other wireless devices, so infrared always occupies a place in the application of home appliance remote controller. There are many baseband communication protocols for the r ...

Posted by contex on Sat, 25 Dec 2021 00:45:35 +0100

MCU plays arbitrary music code through buzzer: Music MCU code is automatically generated

MCU plays arbitrary music code through buzzer (2): Music MCU code is automatically generated In the previous section, we have built a buzzer music playing environment based on 51 single chip microcomputer. Next, we can play different music only by manually or automatically adding music code. Of course, the second section will show you how to a ...

Posted by venom999 on Fri, 24 Dec 2021 07:50:29 +0100

Memory allocation of C program - Ubuntu and STM32

1, Memory allocation of C program stack area It is automatically allocated and released by the compiler to store the parameter values of functions and the values of local variables. Its operation is similar to the stack in the data structure.heap Generally, it is allocated and released by the programmer. If the programmer does not release ...

Posted by f8ball on Thu, 23 Dec 2021 14:21:52 +0100

STM32 serial port transceiver function application [HAL version]

STM32 serial port data transceiver foundation - blocking and non blocking application understanding [HAL version] Send data to serial port Blocking transmission (recommended) Features: the program command sending service starts sending, and will accompany the sending service until all bytes are sent at one time. Or the timeout limit is rea ...

Posted by hasin on Thu, 23 Dec 2021 01:43:59 +0100

Linux driver practice: how does the driver send [signal] to the application?

Author: Daoge, a 10 + year embedded development veteran, focusing on: C/C + +, embedded and Linux. Pay attention to the official account below, reply to books, get classic books in Linux and embedded domain, and reply to PDF to get all original articles (PDF format). Other people's experience, our ladder! Hello, I'm brother Dao. Toda ...

Posted by -entropyman on Wed, 15 Dec 2021 23:58:24 +0100

Cross compilation and configuration of perp from scratch

summary perp is an excellent and low resource consuming open source multi process management framework, which is mostly used in embedded system environment. Since there are few resources on the Internet other than those on the official website, I'll record my previous experience and share it with you. Compared with restart D, perp has mor ...

Posted by Fly on Wed, 01 Dec 2021 05:13:37 +0100

Linux new character device driver

1, Assign and release equipment numbers Using register_ The chrdev function only needs to give a master device number when registering a character device, but this will cause two problems: ① . it is necessary to determine which main equipment numbers are not used in advance.② . all secondary equipment numbers under a primary equipment number ...

Posted by phpwizard01 on Wed, 01 Dec 2021 03:59:08 +0100

AUTOSAR from introduction to mastery - one article to read ld link script file

1 connection script One of the main purposes of connection scripts is to describe how the sections in the input file are mapped to the output file and control the memory layout of the output file. Almost all connection scripts only do these two things. However, when necessary, the connector script can also instruct the connector to perform man ...

Posted by mkarabulut on Thu, 25 Nov 2021 00:07:05 +0100

Detailed explanation of Linux character device driver II (using device driver model)

preface Please read: Detailed explanation of Linux character device driver This article mainly comes from punctual atom, wildfire Linux tutorial and my understanding. If there is infringement, please contact me in time to delete it. text Why do I need a device driven model The early kernel (before 2.4) did not have a unified device driver m ...

Posted by Mr Tech on Wed, 24 Nov 2021 21:49:02 +0100