- Fixed-size ring buffer with overwrite-oldest behavior (log-friendly)
- Host-based tests (gcc) for wrap-around, overflow, and edge cases
- Mock I2C device with fault injection (timeout/NACK) + driver-style read/write APIs
- Retry logic + simple stats counters
cmake -G Ninja -S . -B build
cmake --build build
Run Tests
./build/ringbuf_tests.exe
./build/i2c_tests.exe