diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-10-18 09:14:49 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-10-18 09:14:49 +0200 |
commit | 9fa30bd1b7a197255626c871f61a0b5d4ab7ddf9 (patch) | |
tree | e8f0bd4a06e6e0cbb05940ecddfc222b2f91e8ac /include/arch | |
parent | ecdcb5cb767a5dd993c449164a739a1d90903e85 (diff) |
msp430: Enable powersaving
Diffstat (limited to 'include/arch')
-rw-r--r-- | include/arch/msp430fr5969lp/driver/gpio.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/arch/msp430fr5969lp/driver/gpio.h b/include/arch/msp430fr5969lp/driver/gpio.h index 71dab88..2f271c2 100644 --- a/include/arch/msp430fr5969lp/driver/gpio.h +++ b/include/arch/msp430fr5969lp/driver/gpio.h @@ -24,10 +24,12 @@ class GPIO { P2OUT = 0; P3OUT = 0; P4OUT = 0; - P1DIR = BIT0; - P2DIR = 0; - P3DIR = 0; - P4DIR = BIT6; + PJOUT = 0; + P1DIR = BIT0 | 0xff; // green LED + P2DIR = 0xff ^ (BIT0 | BIT1); // UART + P3DIR = 0xff; + P4DIR = BIT6 | 0xff; // red LED + PJDIR = BIT6 | BIT7; // HFXT (not populated) } inline void led_on(unsigned char id) { if (id == 0) { |