RTOS가 필요한 이유 — 일반 OS와의 결정적 차이
Super-loop는 모든 작업이 직렬화되어 deadline을 보장하지 못합니다. RTOS는 preemption과 우선순위로 실시간성을 확보합니다.
Tech articles, book reviews, and presentations.
페이지 49 / 73
Super-loop는 모든 작업이 직렬화되어 deadline을 보장하지 못합니다. RTOS는 preemption과 우선순위로 실시간성을 확보합니다.
RTOS를 사용하는 것이 아니라 이해하고 구현하는 법. Scheduler, context switch, memory allocator의 내부 동작을 소스 코드 수준에서 분석합니다.
범용 HAL 구조 — 벤더 종속성 격리, 다중 보드/MCU 지원, 시리즈 마무리.
UART, SPI, I2C — peripheral을 type-safe class로. Blocking, interrupt, DMA 패턴.
GPIO pin = type — 컴파일 타임에 핀 설정 검증, runtime 비용 0.
MMIO를 type-safe하게 — volatile, bit field, register wrapper class.
임베디드의 DI 패턴 — Construct-On-First-Use, static dependency injection, service locator.
constexpr state machine — 컴파일 타임에 전이 검증, runtime 코드 0.
타입 안전한 상태 머신 — enum + switch부터 std::variant, etl::fsm까지.
enum class + bit operators — type-safe 비트 플래그. 의도하지 않은 변환 차단.