diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-01-12 14:40:30 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-01-12 14:40:30 +0100 |
commit | 3875f37b2ce1d020aaf5174ea2a885bfdb98db98 (patch) | |
tree | 8815e77b3407ea45209bb03147dd08be82b8e539 /src/arch/msp430fr5969lp/arch.cc | |
parent | c00a200c508e18c41b6c55506ee35a2f21a6fa57 (diff) |
add stdin for esp8266 and msp430 as well as preliminary shell app
Diffstat (limited to 'src/arch/msp430fr5969lp/arch.cc')
-rw-r--r-- | src/arch/msp430fr5969lp/arch.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/arch/msp430fr5969lp/arch.cc b/src/arch/msp430fr5969lp/arch.cc index 44a22c6..8281e66 100644 --- a/src/arch/msp430fr5969lp/arch.cc +++ b/src/arch/msp430fr5969lp/arch.cc @@ -63,10 +63,19 @@ void Arch::setup(void) //P4OUT = 0; } +#ifdef WITH_WAKEUP +extern void wakeup(); +#endif + void Arch::idle_loop(void) { - __eint(); - while (1); + while (1) { + __eint(); + __bis_SR_register(LPM0_bits); +#ifdef WITH_WAKEUP + wakeup(); +#endif + } } Arch arch; |