Embedded Firmware · Medium · C

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

Constraints

Concepts to review

C, ISR, interrupt

Open HDLForge to solve this problem in the interactive editor.

Related problems