Real-Time Clock Example

Configures and starts the RTC with LED alarms

The RTC is set to a 1s tick with alarms set at 3 seconds and 5 seconds.

  LED0 - Turns on when alarm 0 value is reached (3secs)
  LED1 - Turns on when alarm 1 value is reached (5secs)
  LED3 - Toggles every 0.5s (LED turns on every 1sec)

  SW1 - Push to reset the RTC count to 0 and reset alarm interrupts
  SW2 - Push to set snooze for alarm 1 - alarm 1 = current timer + 10sec