Tagged articles
3 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
May 26, 2025 · Fundamentals

Why the ‘volatile’ Keyword Saves Your Embedded C Code (And Common Misconceptions)

Understanding C’s volatile keyword is essential for embedded programming: it prevents compiler optimizations on variables that may change unexpectedly, such as hardware registers or signal‑handler flags, and clarifies common misconceptions about memory visibility, atomicity, and proper usage scenarios.

CCompiler Optimizationembedded programming
0 likes · 9 min read
Why the ‘volatile’ Keyword Saves Your Embedded C Code (And Common Misconceptions)
Open Source Linux
Open Source Linux
Jun 14, 2024 · Fundamentals

Mastering C State Machines: Switch‑Case, Table‑Driven, and Function‑Pointer Techniques

This article explains how to implement finite state machines in C using three approaches—switch‑case, table‑driven, and function‑pointer—detailing their structures, code examples, trade‑offs, and extensions such as compressed tables and hierarchical state machines for robust embedded systems.

CExtended State MachineFinite State Machine
0 likes · 17 min read
Mastering C State Machines: Switch‑Case, Table‑Driven, and Function‑Pointer Techniques
21CTO
21CTO
Nov 24, 2021 · Fundamentals

Why Toit Is the Game‑Changing Language for ESP32 IoT Development

Toit is a free, open‑source programming language designed for IoT that runs on ESP32 devices, offering fast Python‑like syntax, multitasking, container‑based deployment, wireless cloud connectivity, a secure gRPC API, and a Visual Studio Code extension for rapid development.

ESP32IoTToit
0 likes · 9 min read
Why Toit Is the Game‑Changing Language for ESP32 IoT Development