Fixed radio interrupt routine name.
low power.
cpu/arm/k60: Clean up UART code.

- Split off UART debug terminal code into separate module.
- Added PORT module for enabling clock gates.
- Cleaned up UART initialization and usage.
- Added debug terminal configuration parameters to config-board.h

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Add missing enum values in llwu.h

This was missing when merging with the LLWU code at LTU

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Clean up LLWU functions.

Rewrote llwu_enable_wakeup_source into two separate functions:
 - llwu_enable_wakeup_module() for handling internal wakeup sources.
 - llwu_set_wakeup_pin() for handling GPIO pin wakeup sources.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Introduce power_mode_*

Added functions power_mode_vlps, power_mode_lls, power_mode_stop,
power_mode_wait for switching to different power modes.

llwu_sleep() will now use VLPS if allow_deep_sleep is not set, and
LLS mode (like before) when allow_deep_sleep is set.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Remove extra port commands in UART init.

Removed some leftovers from before dbg-uart split.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Add semaphores for inhibiting lower power modes.

Split allow_deep_sleep into three separate counters acting as
semaphores for signalling when to avoid lower power modes.

Drivers can use LLWU_INHIBIT_STOP() and LLWU_UNINHIBIT_STOP() to
increase/decrease the counters. Only if equal numbers of
INHIBIT/UNINHIBIT calls have been performed will the chip enter the
low power modes.

There are similar macros defined for inhibiting LLS and VLPS.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Use llwu semaphores to inhibit stop while still writing bytes

This fixes the problem with dropping the last byte when printing stuff
right before going to low power mode.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Clean up power-control.

Tidied up the header macros to make it less likely to have typos when
modifying for custom hardware.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Add sleep inhibitor to radio driver.

Prevents LLS mode when radio is turned on in order to avoid a scenario
where the MCU is not woken by the radio when a packet has arrived.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Avoid STOP when UART RX is active.

Added a check for all UART RAF flags.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Enable wake on UART.

This is necessary in order to be able to wake from STOP mode when
waiting for RX bytes.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Inhibit LLS when using SLIP.

UART RX can not wake CPU from LLS so we need to stay awake if we are
acting as a SLIP bridge.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
platform/mulle: Add more LLS inhibitors to rf230

Added missing LLWU_INHIBIT_LLS() to init and transmit functions that
turn on the radio when it is turned off.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
cpu/arm/k60: Add LPWUI flag to VLPS.

Go straight to (full power) Run mode after VLPS independently of
whether VLPR or RUN was engaged before.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
examples/ipv6/rpl-border-router: Define WITH_SLIP.

Used to trigger some conditional compiles in certain platforms.

Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>