From 8bc24fb8def6729fbc893c4b6c97ccf332365397 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 10 Jan 2020 19:56:13 -0700 Subject: [PATCH] Break out GPIO init into bits --- src/board/system76/lemp9/gpio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/board/system76/lemp9/gpio.c b/src/board/system76/lemp9/gpio.c index bd14d8f..6f12c05 100644 --- a/src/board/system76/lemp9/gpio.c +++ b/src/board/system76/lemp9/gpio.c @@ -26,11 +26,11 @@ void gpio_init() { // Set GPIO data GPDRA = 0; - GPDRB = 0x18; + GPDRB = (1 << 4) | (1 << 3); GPDRC = 0; - GPDRD = 0x38; - GPDRE = 0x08; - GPDRF = 0x40; + GPDRD = (1 << 5) | (1 << 4) | (1 << 3); + GPDRE = (1 << 3); + GPDRF = (1 << 6); GPDRG = 0; GPDRH = 0; GPDRI = 0;