FreeRTOS Essential APIs and Macros Reference
1. Task Status Information Display
1.1 Purpose of vTaskList
The vTaskList function provides a comprehensive view of all running tasks, displaying their current state information in a formatted string.
1.2 Functon Signature
void vTaskList(char *pcWriteBuffer)
Buffer contains the following fields:
Name: Task idantifier
State: Current task state ...
Posted on Fri, 19 Jun 2026 16:50:57 +0000 by netdog
Implementation of DateTime Configuration in NWatch Settings Menu
Initializing the DateTime Configuraton Screen
When entering the DateTime settings screen, the interface is initialized with appropriate menu options and callbacks. This screen uses string-based (STR) rendering.
static void updateTimeDisplay(void) {
char buffer[17];
uint8_t displayMode = (timeDateSet.time.ampm != CHAR_24) ? 12 : 24;
...
Posted on Thu, 11 Jun 2026 18:29:00 +0000 by John_S
Implementing Hardware Interrupt Affinity via the Irq_chip Interface
The Linux kernel employs the struct irq_chip abstraction to represent interrupt controller hardware. Since different processor architectures manage interrupts uniquely, this structure encapsulates callback functon pointers directed at the underlying hardware control logic. Key operations such as enabling, masking, and configuring affinity are r ...
Posted on Mon, 01 Jun 2026 17:27:36 +0000 by msound
Resolving Cross-Compilation Issues with Qt on Linux
Installing Cross-Compilation Toolchain
# Install ARM cross-compilation tools
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
# Alternative: Download toolchain from vendor
wget https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux ...
Posted on Tue, 19 May 2026 09:15:39 +0000 by mizkie
Python CAN Library for Network Communication
Python CAN Library Overview
The can library in Python facilitates Controller Arrea Network (CAN) communication, a protocol widely used in automotive and industrial systems. It offers a uniform API for developing CAN-related applications without requiring a central host.
Basic Usage
Installation
Install the library using pip:
pip install python- ...
Posted on Sun, 10 May 2026 08:26:32 +0000 by ksteuber
Practical Techniques for Common Problem Models in Lanqiao Cup Microcontroller Programming
Standardized Code Patterns for Varible Modification
1. Toggling Between 0 and 1
Use the XOR operator to switch a variable between 0 and 1 each time the code executes.
DisplayModeFlag ^= 1;
2. Cycling Through a Range of Values
Increment a variable and reset it to the starting value once it exceeds an upper limit.
if (++DisplayModeFlag == LIMIT_ ...
Posted on Fri, 08 May 2026 01:57:47 +0000 by wisewood