Lab 1 Check
sh
machinelab test rtc
machinelab run --headless --rtc 2026-06-16T12:34:56 -- build/examples/rtc_dateDiscussion Prompts
- Why does
rtc_read_datereceive a pointer instead of returning a struct? - What can go wrong if the date changes between reading day, month, and year?
- Which helper belongs in
labs/rtc/and which belongs inlib/rtc/?
External Reading
- GNU C bitwise operations: https://www.gnu.org/software/c-intro-and-ref/manual/html_node/Bitwise-Operations.html
- GNU C shift operations: https://www.gnu.org/software/c-intro-and-ref/manual/html_node/Shift-Operations.html
- GNU C variadic functions: https://www.gnu.org/software/libc/manual/html_node/Variadic-Functions.html
- OSDev CMOS overview: https://wiki.osdev.org/CMOS