STM32F103 transplantation uCOS-III

This paper mainly describes how to use STM32F103C8T6 to transplant uCOSIII operating system, build three tasks, control the LED on-off in 1s and 3s, and send "hello uc/OS! Welcome to RTOS multitasking environment" through serial port in 2s cycle. In addition to mastering the Keil simulation and debugging code function, SaleaeLogic16 i ...

Posted by annette on Sat, 04 Dec 2021 23:23:57 -0800

Some understanding of semaphores, mutexes, mailboxes and message queues in RTOS

1. Semaphore There are two kinds of semaphores: counting semaphores and binary semaphores. Counting semaphores can be obtained multiple times. Binary semaphores have only two states: 0 and 1, and can only be obtained once. Semaphores can be used to protect resources and prevent multiple tasks from accessing a resource at the same time. Create ...

Posted by thefarhan on Sun, 21 Nov 2021 16:43:45 -0800

FreeRTOS and RT-Thread for Interrupt and Critical Zone Processing

1. Management of interruptions Freertos manages system interrupts by manipulating BASEPRI registers, and the management priority is defined in the header file FreeRTOSConfig.h #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY    5 Setting the maximum priority that FreeRTOS can manage does not belong to the FreeRTOS pipeline, and interrupt ...

Posted by Warmach on Sat, 18 Sep 2021 19:26:01 -0700