Embedded C
C for microcontrollers — the C foundations you need, then fixed-width types, register bit operations, volatile, memory-mapped I/O, GPIO, interrupts, SysTick timing, ring buffers, drivers, startup code, linker sections, fixed-point and MISRA-style reliability, with real code compiled for an ARM Cortex-M4.
Lessons
- What Is Embedded C?
- Fixed-Width Types & Integer Promotion
- Register Bit Operations
- The volatile Keyword
- Memory-Mapped Registers
- GPIO: Driving LEDs & Reading Buttons
- Interrupts & ISRs in C
- SysTick, Timing & Non-Blocking Delays
- UART Driver with a Ring Buffer
- State Machines in Embedded C
- Driver & HAL Design
- Flash, RAM & the Memory Map
- Startup Code & the Reset Handler
- Stack, Heap & Static Allocation
- Fixed-Point Arithmetic
- Safe & Defensive Embedded C (MISRA C)
- Low Power & Optimization
- Debugging Embedded C