C Language in Embedded Development

C Language in Embedded Development

Abstract: This article first analyzes the traps and defects of the C language, summarizing the common mistakes; it discusses the shortcomings of compiler semantic checks and provides preventive measures. Using the Keil MDK compiler as an example, it introduces the features of this compiler, its handling of undefined behavior, and some advanced applications. Based on … Read more

FreeRTOS Learning: Data Types and Coding Style

FreeRTOS Learning: Data Types and Coding Style

Scan to FollowLearn Embedded Together, learn and grow together FreeRTOS defines its own set of data types primarily to ensure portability across different processor architectures and compilers. These data types are defined in the <span>portmacro.h</span> file, and the specific implementation will be adjusted according to different compilers and processors. Basic Data Types FreeRTOS defines the … Read more

Coding Style: The Use of Indentation, Spaces, and Braces in C Language

Coding Style: The Use of Indentation, Spaces, and Braces in C Language

Coding Style: The Use of Indentation, Spaces, and Braces in C Language When writing C programs, a good coding style not only enhances the readability of the code but also aids in team collaboration and future maintenance. This article will detail the specifications for using indentation, spaces, and braces in C language, along with corresponding … Read more