X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Flm3s1968%2Fhw%2Fhw_kbd.h;fp=examples%2Flm3s1968%2Fhw%2Fhw_kbd.h;h=7369a321aa97add0675dd2d1d892a9084ca63b82;hb=989936f974130cc81b0e269dd7b62cb35b205214;hp=10562f7900ea341d243ddf86e8efc9aa0b3e92c4;hpb=67d2aeb4d61b3843ed2fbac9ced64ffb76059c50;p=bertos.git 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, \