From: arighi Date: Wed, 28 Apr 2010 20:24:29 +0000 (+0000) Subject: lm3s1968: be sure to enable clock gating for GPIO port G before using any of the... X-Git-Tag: 2.5.0~342 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=989936f974130cc81b0e269dd7b62cb35b205214;p=bertos.git 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 --- 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, \