Openblt process 2: code flow
The book goes on to say: next, we will take an example of mcu. Let's analyze the source code of Openblt
First of all, in the world of programs, main is king, so let's take a look at the emperor's ideas first
int main(void)
{
/* initialize the microcontroller */
Init();
/* initialize the bootloader */
BootInit();
/* start the infi ...
Posted by aruns on Mon, 24 Jan 2022 09:02:34 +0100
Miniclock -- desktop network small clock based on RT thread OS
Recently, I was interested in the Internet of things and had the honor to contact RT thread OS after learning:
RT thread is an open source real-time operating system developed by the Chinese team. It is not only a real-time kernel, but also an operating system with complete functions. It has the advantages of modular development, rich commun ...
Posted by Entanio on Sun, 23 Jan 2022 16:42:15 +0100
Common API s for embedded software application layer development
Standard IO and file IO
1.fopen open flow
FILE *fopen(const char *path, const char *mode); This function can be used to open a standard IO stream. The stream pointer is returned on success and NULL on error. A total of 1021 streams can be opened except stdin, stdout and stderr (standard input, standard output and standard error). Path: th ...
Posted by irish21 on Sat, 22 Jan 2022 06:00:11 +0100
LPC2000 series - LPC2124 (timer, external interrupt) realizes running light (running light)
LPC2000 series - LPC2124 (timer, external interrupt) realizes running light (running light)
Jiangnan University 18 Internet of things embedded curriculum, this curriculum is a reference
This blog post (also written by a senior student of Jiangda), I improved and fixed some bug s on this basis.
[note] don't copy everything completely. Eve ...
Posted by macpaul on Fri, 21 Jan 2022 05:49:34 +0100
linux system programming - communication mechanism between processes or threads
1. Classification of communication mechanism
Communication mechanisms between linux processes or threads are mainly divided into three categories: Communication: these tools focus on data exchange between processes. Synchronization: these processes focus on synchronization between processes and thread operations. Signal: in a specific scenario ...
Posted by darkwolf on Tue, 18 Jan 2022 20:59:57 +0100
[learning notes] STM32F1 general timer PWM (register, standard library, HAL Library)
catalogue
11. Universal timer PWM
1. Experiment contents and steps:
2. Hardware description
3. Explain the steps in detail
3.1 timer configuration
3.2 timer output PWM configuration
4. Program design (register)
5. Program design (Standard Library)
6. Program design (HAL Library)
7. Experimental results
8. Source code download
11 ...
Posted by zicco on Tue, 18 Jan 2022 06:36:34 +0100
K210 standalone C development
As the bare metal development foundation of K210 development board, the environment adopts cmake+vs code2019. For authority, please refer to the official development manual of Jianan. The problems in the article are inevitable. Welcome to discuss~
Basic routine
Turn on the LED
1. Corresponding API in SDK
The hardware pin and software fu ...
Posted by michalchojno on Tue, 18 Jan 2022 03:39:33 +0100
Harmony OS device development learning record -- sensing ambient light through photoresist
Harmony OS device development and learning record (VII) -- sensing ambient light through photoresist
Based on hispark wifi suite, harmony os 2.0 full code is adopted
Note: this example shows the adc usage of photoresist, which is the same as that of human infrared sensor.
1, See the schematic diagram to determine the hardware circuit
This e ...
Posted by mrmigu on Sat, 15 Jan 2022 23:09:57 +0100
MSP430F5529 DriverLib library function learning notes GPIO
Platform: Code Composer Studio 10.3.1
MSP430F5529 LaunchPad™ Development Kit (MSP‑EXP430F5529LP)
Hard knowledge
1, MSP430 MCU port overview
General I/O port is the most important and commonly used peripheral module of MSP430 single chip microcomputer. The general I/O port can not only be directly used for input / output, but also prov ...
Posted by natronp on Sat, 15 Jan 2022 00:23:42 +0100
Linux interrupt subsystem 2: Hardware encapsulation layer related to arch
A design principle of Linux general interrupt subsystem is to hide the underlying hardware implementation as much as possible, so that the driver developers do not pay attention to the underlying implementation. To achieve this goal, the kernel developers must peel off the hardware related content, and then define a series of standard in ...
Posted by webdata on Fri, 14 Jan 2022 10:48:27 +0100