| Xmega IEC60730 Class B Library 1.0 |

All Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
registers/UserApplication.c File Reference

## Detailed Description

This is a demo application for the CPU registers test.

The test is called from a button interrupt. If there is an error the CPU goes to an infinite loop or sets the global error flag classb_error. This depends on the kind of error and the user configuration.

Application note:
  AVR1610: Guide to IEC60730 Class B compliance with XMEGA

Documentation
  For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html

Author:
  Atmel Corporation: http://www.atmel.com
  Support email: avr@a.nosp@m.tmel.nosp@m..com

Copyright (C) 2012 Atmel Corporation. All rights reserved.

Definition in file registers/UserApplication.c.

`#include "avr_compiler.h"`
`#include "classb_cpu.h"`
Include dependency graph for registers/UserApplication.c:

Go to the source code of this file.

## Functions
void | setup_led_switches ()
| Sets up LEDs and switches.
int | main (void)
| Main entry point of the application.
| ISR (SWITCH_INT0_vect)
| The button interrupt is used to call the self-diagnostic routine.

## Variables
NO_INIT volatile uint8_t | classb_error
| Global error flag.