projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update triface project.
[bertos.git]
/
examples
/
lm3s1968
/
hw
/
hw_kbd.h
diff --git
a/examples/lm3s1968/hw/hw_kbd.h
b/examples/lm3s1968/hw/hw_kbd.h
index 10562f7900ea341d243ddf86e8efc9aa0b3e92c4..7369a321aa97add0675dd2d1d892a9084ca63b82 100644
(file)
--- a/
examples/lm3s1968/hw/hw_kbd.h
+++ b/
examples/lm3s1968/hw/hw_kbd.h
@@
-40,6
+40,7
@@
#include <cfg/macros.h> /* BV() */
#include <io/lm3s.h> /* GPIO_PORTG_BASE */
#include <cfg/macros.h> /* BV() */
#include <io/lm3s.h> /* GPIO_PORTG_BASE */
+#include <drv/clock_lm3s.h> /* lm3s_busyWait() */
#include <drv/gpio_lm3s.h> /* lm3s_gpioPinConfig() / lm3s_gpioPinRead() */
#include "hw/kbd_map.h"
#include <drv/gpio_lm3s.h> /* lm3s_gpioPinConfig() / lm3s_gpioPinRead() */
#include "hw/kbd_map.h"
@@
-47,6
+48,8
@@
#define KBD_HW_INIT \
do { \
#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, \
lm3s_gpioPinConfig(GPIO_PORTG_BASE, \
K_RPT_MASK, \
GPIO_DIR_MODE_IN, \