RT-THREAD Kernel Quick Start Mailbox, Message Queue, Signal
Catalogue of Series Articles
RT-THREAD Kernel Quick Start (1) Threads
RT-THREAD Kernel Quick Start (2) Timer
RT-THREAD Kernel Quick Start (3) Semaphores, Mutexes, Events
Preface
This is the fourth in the Quick Start series, the last to last in the Programming section, followed by a Memory Management and Interrupts section, which is t ...
Added by switchdoc on Sat, 12 Feb 2022 05:18:34 +0200
[013] [RT thread learning notes] dynamic memory heap management
RT thread version: 4.0.5 MCU model: STM32F103RCT6 (ARM Cortex-M3 core)
introduction
stay Program memory distribution It is explained that the space from the end address of ZI segment to the tail of RAM memory is RTT dynamic memory heap. This paper mainly describes the RT thread dynamic memory heap management algorithm, analyzes the ...
Added by andreiga on Fri, 11 Feb 2022 08:31:16 +0200
Zephyr RTOS -- Polling API
Based on Zephyr version 0.6
Polling API - (polling API)
The polling API is used to wait concurrently for any one of multiple conditions to be met.
1. Concepts - (Concepts)
The main functions of the polling API are k_poll() , it is conceptually very similar to the POSIX poll() function, except that it operates on kernel objects rather th ...
Added by asterinex on Mon, 07 Feb 2022 15:24:17 +0200
Detailed explanation and application of [005] [RT-Thread learning notes] semaphore
RT-Thread version: 4.0.5 MCU model: STM32F103RCT6 (ARM Cortex-M3 kernel)
1 Synchronization and Mutual Exclusion
First add a few concepts:
Execution Unit: Determined by the current hardware platform and the operating system it runs. For RT-Thread and STM32, the execution units are threads and interruptsCritical Zone: Multiple execut ...
Added by mcollyns on Sat, 05 Feb 2022 20:24:58 +0200
Single chip microcomputer -- HLK-W801 transplanted Nes simulator
Pre episode review
Single chip microcomputer HLK-W801 transplanted Nes simulator (I) I've finished the transplantation of the program. Today, I'll try the key operation. At least I can jump and eat a mushroom
Key recognition
For the identification of keys on w801, I use an omni-directional key keyboard I used before, The keys are collected ...
Added by moiseszaragoza on Fri, 28 Jan 2022 10:54:25 +0200
STM32F103Mini transplant RT threadnano
STM32F103 Mini transplant RT thread nano
Introduction to RT thread nano
RT thread nano is a minimalist version of hard real-time kernel. It is developed by C language, adopts object-oriented programming thinking and has a good code style. It is a tailorable, preemptive real-time multitasking RTOS. Its memory resources are very small, and ...
Added by scvinodkumar on Tue, 25 Jan 2022 08:04:41 +0200
Research on RTOS kernel technology: thread switching and running
preface
The primary role of RTOS is to switch threads, just like interrupt processing logic. After interrupt, handle other things. After processing, return to normal and continue execution.
Thread switching
RT thread kernel code is used here to verify
The main functions of thread switching are written in assembly language. I think we will ...
Added by basement on Mon, 17 Jan 2022 00:17:22 +0200
Transplanting uCOS based on HAL library STM32F103C8T8
1. Get uC/OS-III source code
1.1 Download Method
Official (slower) http://micrium.com/downloadcenter/Baidu Netdisk (faster, recommended) Links: https://pan.baidu.com/s/1WJpJzT9ha2ua3pJzz4WtBg Extraction Code: 5jt8
1.2 File preparation
When the download is complete, open the folder and you can see four file directories: New folder: uC-B ...
Added by cdoyle on Sat, 04 Dec 2021 19:46:16 +0200
Rt-threadSource Analysis Paper 14: rt_system_signal_init function analysis
1. rt_system_signal_init source
int rt_system_signal_init(void)
{
_rt_siginfo_pool = rt_mp_create("signal", RT_SIG_INFO_MAX, sizeof(struct siginfo_node));
if (_rt_siginfo_pool == RT_NULL)
{
dbg_log(DBG_ERROR, "create memory pool for signal info failed.\n");
RT_ASSERT(0);
}
return 0;
}
2. rt_system_signal_ ...
Added by teanza on Mon, 06 Sep 2021 19:09:59 +0300