Lingsiwei-LE5010 Bluetooth development

Write an article today to explain a problem that puzzles some engineers when using le5010 chip In the SDK, why don't we create a while loop and implement some of our logic in it? Where is our user code implemented? With these two questions, let me briefly introduce the background of this chip. What is the difference between Bluetooth chip and ...

Posted by NixNod on Wed, 13 Oct 2021 13:29:56 -0700

Mixed C and Assembly Language Programming for STM32 under Keil5

stay Creating STM32 Assembly Language Project Based on Keil5 On this basis, continue to learn the mixed programming of C and assembly language for STM32 under Keil5. Contents of this article: 1. Refer to the attachments to complete the C language call assembly function; 2. Modifying the code requires changing the type of Init_1 functio ...

Posted by ahmed17 on Wed, 13 Oct 2021 10:54:36 -0700

677 - detailed explanation of large end mode and small end mode

1. What is the core of big end and small end? The large end mode and the small end mode are two modes corresponding to the actual byte order and the stored address order, which are summarized as follows: Big end mode: low address corresponds to high byte Small end mode: low address corresponds to low byte No matter in the big end or small end ...

Posted by fullyloaded on Wed, 13 Oct 2021 10:11:09 -0700

C and assembly language mixed programming of STM32 under Keil

1, Create project 1. Create new projects 2. Select STM32F103C8 3. Check device startup, otherwise an error may be reported Click Ok. 2, Programming Right click Source Group1 and add the main.c and func.s files. The code is as follows: main.c # include<stdio.h> extern void Init_1(void); int main(){ Init_1(); return ...

Posted by czs on Tue, 12 Oct 2021 17:48:08 -0700

[data structure] sort - eight sorts

preface In learning data structures, we often come into contact with the term sorting, but when we learn, we may be at a loss when facing the code directly. Why do the interface use these parameters and why do we exchange them back and forth... We don't know what the authors think when implementing these interfaces, In this blog, I wil ...

Posted by kailien on Sun, 10 Oct 2021 10:33:03 -0700

Branch statement (detailed)

if statement 1. Grammatical Structure 1. Structure //Single Branch If (expression) Statement; //Bibranching If (expression) Statement 1; else Statement 2; //Multi-Branch Structure If (expression 1) Statement 1; Else if (expression 2) Statement 2; ...... else Statement n; 2. Examples #include <stdio.h> //Code 1 int main() { int age ...

Posted by matbennett on Sun, 10 Oct 2021 10:15:29 -0700

[advanced C language] playing with pointer -- High-level playing method of pointer!

preface We have already touched the topic of pointer in the chapter of pointer at the primary stage. We know the concept of pointer: 1. A pointer is a variable used to store an address, which uniquely identifies a piece of memory space. 2. The size of the pointer is fixed 4 / 8 bytes (32-bit platform / 64 bit platform). 3. The pointer i ...

Posted by jonat8 on Sun, 10 Oct 2021 06:44:18 -0700

Weng Kai C language learning notes

1, Weng Kai C language 1. There are two ways to define macro constants const int AMOUNT=100; or #define AMOUNT 100 2. Floating point number //float is a single precision floating point number //Double is a double precision floating-point number 3. Data type //integer int printf("%d",...) scanf("%d",...) //Number with decimal point doubl ...

Posted by ckuipers on Sun, 10 Oct 2021 03:54:44 -0700

STL learning notes - space Configurator

1, Overview Allocator is one of the six components of STL, space configurator. Its function is to manage memory for each container (memory recovery). The allocator configuration object is not only memory, it can also ask for space from the hard disk. Here we mainly consider the memory management. When using STL library, we don't have to consid ...

Posted by niki77 on Sun, 10 Oct 2021 02:54:54 -0700

Practical application of single linked list

First ask a question: what is the algorithm? In my opinion, algorithm is a way to solve problems. When your problem is more complex, the algorithm you need is more complex. More and more complex code is needed to implement it. In the following example, there is the embodiment of the algorithm. The following is an example to explain the applica ...

Posted by daloss on Sat, 09 Oct 2021 21:51:28 -0700