[miscellaneous] detailed explanation of the configuration of the C & C + + code beautification tool Uncrustify in VScode

Detailed explanation of Uncrustify configuration of C & C + + code beautification tool in VScode catalog: 1: Overview 2: Download 3: Installation 4: Play Uncrustify in vscode 0: update Journal 2022 / 2 / 5 update: Chapter 3.3: use. Later, other usage methods will be updated and various ides may be used to use Uncrustify. 1: Overv ...

Added by ab4net on Sat, 05 Feb 2022 09:55:00 +0200

linux thread init

linux thread init (note) The code of this article comes from the linux kernel version: 4.1.15 (Xiaosheng's articles will be based on this version unless otherwise specified) The source file of this code starts with (/), which represents the installation directory of linux kernel. (unless otherwise specified in Xiaosheng's articles, there ...

Added by steeveherris on Sat, 05 Feb 2022 06:29:29 +0200

Section 3.3 of algorithm notes - Introduction simulation - > Graphic Output

A output ladder Title Description h is the height of the upper input side of the ladder, and h is the height of the upper input side. input An integer H (1 < = h < = 1000). output Trapezoid corresponding to h. sample input 5 sample output ***** ******* ********* *********** ************* Code submissi ...

Added by private_guy on Fri, 04 Feb 2022 16:55:45 +0200

Function exercises and knowledge points

catalogue (1) Knowledge points (2) Function returns two variables (3) Print prime numbers within 100-200 (4) Implement a function to print the multiplication formula table, and the number of rows is specified by yourself (5) The reverse order of string is realized by function. The string operation function in C function library (symmetri ...

Added by c_coder on Fri, 04 Feb 2022 16:28:41 +0200

Character function and string function

This blog introduces some functions and how to simulate their implementation strlen function Introduction: calculate the length of the string str until the null end character, but excluding the null end character Prototype: size_t strlen(const char *str) Return value: returns the length of the string Note: 1. The string ends with '\ 0'. strl ...

Added by nuxy on Fri, 04 Feb 2022 16:12:21 +0200

ANO anonymous flight control time slice scheduling transplanted to ordinary STM32 project

engineering structure The codes related to time slice scheduling are located in the scheduler and Task files in the scheduler directory. The original clock of anonymous flight control is provided by the external interrupt realized by the 1ms pulse output by the sensor. In order to make the time slice scheduling algorithm can be used in genera ...

Added by zarp on Fri, 04 Feb 2022 15:34:07 +0200

One dimensional array and two-dimensional array

1. Creation and initialization of one-dimensional array 1.1 creation of array An array is a collection of elements of the same type. How to create an array: type_t   arr_name   [const_n]; //type_t is the element type of the index group //const_n is a constant expression that specifies the size of the array Instance of array ...

Added by MrJW on Fri, 04 Feb 2022 12:27:51 +0200

Xiao Tang began to brush the real title of the fourth C / C + + group B Blue Bridge Cup in 2013

Previous: Xiao Tang began to brush the real title of the 2014 fifth C / C + + group B Blue Bridge Cup Next: in the liver, in the liver preface Winter vacation must kill them!!! 1, Gauss diary Title Description: The great mathematician Gauss has a good habit: keep a diary anyway. There is a difference in his diary. He never indicates t ...

Added by goatboy on Fri, 04 Feb 2022 10:11:56 +0200

Detailed explanation of C language custom types

1. Structure Structure type declaration A structure is a collection of values called member variables. Each member of the structure can be a different type of variable. //Structure declaration describing a student struct stu { char name[20]; int age; char sex[5]; char id[20]; }; Special declaration 1. Anonymous structur ...

Added by tensionx on Fri, 04 Feb 2022 06:15:16 +0200

LTDC-DMA2D LCD code explanation

The specific principle of using the following structures needs to refer to LTDC-DMA2D liquid crystal display (I) 1, LTDC initialization structure typedef struct { uint32_t LTDC_HSPolarity; //Configure the polarity of the line synchronization signal HSYNC uint32_t LTDC_VSPolarity; //Configure the polarity of vert ...

Added by jets on Thu, 03 Feb 2022 22:03:22 +0200