Testing network stack
Rework XMEGA rs232 support

Write rs232_init to match spec and use fixed defines for
baud rate which makes specifying baud rates easier.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
Get LED's working for AVR

If __USE_LEDS__ is defined then do stuff, otherwise fake it.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
Support for AVR XMega platform AL-XSLED-EXT

Initial commit for xmega256a3 based AL-XSLED-EXT with
USART Console and LED support in place.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
XMega: RS232 disable and enable interrupts during init

As described in spec.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
XMega: Rework AVR Watchdog

Fixed problems with init, start, disable and reboot.
Defined a macro for wdt_disable.
Moved and added included to get conditional defines working.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
AL-XSLED_EXT add watchdog support

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
Git ignore additions
Rework defines for XMEGA

Created a define for Type (XMEGA) and Family (XMEGA_A) which
can be used along with the CPU defines to better manage the
Xmega specific code.

Also moved common definitions into the avrdef.h file which makes
for less duplication and more concise contiki-conf.h files.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
Add definitions to satisfy LEDS api

Map these LEDs to a spare pin .. and ignore.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
Add xmega_read_calibration_byte to avr.c

Common function from reading calibration bytes.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
Merge branch 'xmega' of github.com:jmondi/contiki-xmega into xmega
Merge branch 'timrule' into xmega

Conflicts:
	platform/emb-zrf212/contiki-conf.h
Merge pull request #1 from timrule/xmega

Merging with Tim Rule repository
Merge branch 'xmega' of github.com:jmondi/contiki-xmega into xmega
XMEGA: make the XMEGA defines more robust


Signed-off-by: Tim Rule <trule.github@nym.hush.com>
XMEGA: refactor the clock code to make platform support easier

The chip specific code in avr/dev is generic enough that the clock
can be setup with a few platform defines in contiki-conf.h. There are
also useful default settings so that the clock will work out of the
box against the internal 2M osc. Example defines are:

#define XMEGA_OSC_SOURCE OSC_RC2MEN_bm
#define XMEGA_CLOCK_SOURCE 0
#define XMEGA_TIMER_TOP 250
#define XMEGA_TIMER_PRE TC_CLKSEL_DIV64_gc


Signed-off-by: Tim Rule <trule.github@nym.hush.com>
AL-XSLED-EXT: Setup clock to run from internal 2M osc

Gets the clock running for Contiki OS

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
XMEGA: migrate avr-poe and emb-zrf212 to new clock_init

I think I've done this right. It allows for custom OSC/PLL setup as
well as ignoring OSC changes during clock init.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>
AL-XSLED-EXT: apps hello world and adc

Temperature reading is wrong, I almost wonder if it
was calibrated at 85degF rather than 85degC.

Signed-off-by: Tim Rule <trule.github@nym.hush.com>