From 989936f974130cc81b0e269dd7b62cb35b205214 Mon Sep 17 00:00:00 2001 From: arighi Date: Wed, 28 Apr 2010 20:24:29 +0000 Subject: [PATCH] lm3s1968: be sure to enable clock gating for GPIO port G before using any of the associated pin. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3566 38d2e660-2303-0410-9eaa-f027e97ec537 --- examples/lm3s1968/hw/hw_kbd.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/lm3s1968/hw/hw_kbd.h b/examples/lm3s1968/hw/hw_kbd.h index 10562f79..7369a321 100644 --- a/examples/lm3s1968/hw/hw_kbd.h +++ b/examples/lm3s1968/hw/hw_kbd.h @@ -40,6 +40,7 @@ #include /* BV() */ #include /* GPIO_PORTG_BASE */ +#include /* lm3s_busyWait() */ #include /* lm3s_gpioPinConfig() / lm3s_gpioPinRead() */ #include "hw/kbd_map.h" @@ -47,6 +48,8 @@ #define KBD_HW_INIT \ do { \ + SYSCTL_RCGC2_R |= SYSCTL_RCGC2_GPIOG; \ + lm3s_busyWait(512); \ lm3s_gpioPinConfig(GPIO_PORTG_BASE, \ K_RPT_MASK, \ GPIO_DIR_MODE_IN, \ -- 2.25.1