RTOS Queue 활용 — By-Value·By-Reference·Timeout 패턴
RTOS queue로 producer-consumer를 구성하고, by-value vs by-pointer, backpressure, zero-copy queue까지 정리합니다.
Tech articles, book reviews, and presentations.
페이지 50 / 56
RTOS queue로 producer-consumer를 구성하고, by-value vs by-pointer, backpressure, zero-copy queue까지 정리합니다.
Mutex와 binary semaphore의 차이, priority inheritance, recursive lock, timeout, ownership 규칙을 정리합니다.
Binary semaphore signaling, counting semaphore resource pool, ISR-to-task wake-up 패턴과 task notification과의 선택 기준을 FreeRTOS V11.2.0 소스로 정리합니다.
Preemptive와 cooperative, time-slice, context switch 비용, tickless idle까지 scheduler가 실제로 어떻게 도는지 정리합니다.
Periodic, event-driven, state machine 세 가지 task 패턴과 priority 산정 기준을 정리합니다.
Super-loop와 RTOS의 분기점, RAM/Flash 비용, 디버깅 복잡도, 결정 기준을 한 자리에 정리합니다.
STM32F407 RTC를 LSE로 돌려 BCD calendar를 읽고 쓰고, alarm mask·sub-second·tamper·backup register를 RM0090 기준으로 설정합니다.
STM32F407 SPI1에서 SD 카드를 SPI 모드로 초기화하고 FatFs R0.16의 disk I/O 함수에 연결합니다. 다중 블록 쓰기와 f_sync 주기가 카드 쓰기 횟수와 전원 차단 때 잃는 데이터에 주는 영향도 다룹니다.
STM32F407 ETH MAC과 LAN8742 PHY를 RMII·MDIO로 잇고, lwIP 2.2.0 raw API UDP echo를 host에서 실제 packet으로 돌려 봅니다.
TinyUSB 0.18.0으로 STM32F407 OTG_FS에 CDC echo device를 만들고, descriptor byte를 host에서 풀어 enumeration이 무엇을 읽는지 봅니다. 빌드 명령과 크기까지 재현합니다.