From 177d49b769331a1aeb63ec589b1d54c2ebc93dca Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 6 Jan 2017 14:22:27 -0800 Subject: [PATCH] GPIO: Fix for incorrect pin-funciton bit mask. Caused device to not boot. Oops. --- firmware/common/gpio.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/common/gpio.hpp b/firmware/common/gpio.hpp index 69e12c91..75c729c5 100644 --- a/firmware/common/gpio.hpp +++ b/firmware/common/gpio.hpp @@ -42,7 +42,7 @@ struct PinConfig { | ((fast & 1) << 5) | (((~pu) & 1) << 4) | ((pd & 1) << 3) - | ((mode & 1) << 0); + | ((mode & 7) << 0); } /* constexpr operator uint32_t() {