From 9fa30bd1b7a197255626c871f61a0b5d4ab7ddf9 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Thu, 18 Oct 2018 09:14:49 +0200
Subject: msp430: Enable powersaving

---
 include/arch/msp430fr5969lp/driver/gpio.h | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'include')

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) {
-- 
cgit v1.2.3