Timer Interrupt Service Routine
Implement a timer ISR that records ticks, toggles one GPIO bit and schedules the next timer interrupt.
Task
Increment a volatile tick counter, XOR GPIO bit 0, and call timer_schedule(1000).
Examples
- Implement the required behavior and preserve it under the stated interface/control conditions.
Constraints
- Keep the implementation deterministic and consistent with the interface contract described in the task.
Concepts to review
C, ISR, interrupt
Open HDLForge to solve this problem in the interactive editor.
Related problems
- Machine Timer Peripheral — Medium
- APB Timer Peripheral — Medium
- Memory-Mapped I/O Accessors — Easy
- GPIO Bare-Metal Driver — Easy
- Polling UART Driver — Medium