You are implementing firmware for a system that depends on a hardware timebase.
Exactly one timebase must be selected at build time.
Runtime selection is architecturally forbidden.
Your task is to complete the program so that:
Input / Program Flow:
The firmware performs the following steps:
Two valid timebases exist:
Only one timebase is ever used in a firmware build.
Output:
The program must print exactly:
elapsed_ms=100 Note:
This output corresponds to selectingSysTickTimer.
Validation ofRtcTimeris performed by recompiling the program with a different compile-time selection.
Constraints:
if, switch)
Input
Expected Output
elapsed_ms=100