Methods | Brief description |
![]() |
Configures the pushbuttons to generate interrupts when pressed. |
![]() |
Configures LEDs #1 and #2 (cleared by default). |
![]() |
Configure the periodic interval timer to generate an interrupt every millisecond. |
![]() |
Configure Timer Counter 0 to generate an interrupt every 250ms. |
![]() |
Interrupt handler for pushbutton#1. Starts or stops LED#1. |
![]() |
Interrupt handler for pushbutton#2. Starts or stops LED#2 and TC0. |
![]() |
Handler for PIT interrupt. Increments the timestamp counter. |
![]() ![]() |
Interrupt handler for TC0 interrupt. Toggles the state of LED#2. |
![]() ![]() |
Application entry point. |
![]() |
Waits for the given number of milliseconds (using the timestamp generated by the PIT). |
Defines | |
![]() |
Delay for pushbutton debouncing (in milliseconds). |
![]() |
PIT period value in µseconds. |
Attributes | |
![]() |
Pushbutton #1 pin instance. |
![]() |
Pushbutton #1 pin instance. |
![]() |
Indicates the current state (on or off) for each LED. |
![]() |
Global timestamp in milliseconds since start of application. |