61372551e9
Fix GPIO operation of STMPE811 driver. Fixed issues: 1. STMPE811_GPIO_DIR was defined for register name and later was redefined to be the pin direction mask for `stmpe811_gpioconfig` I decided to change register name to be STMPE811_GPIO_DIR_REG, and keep pin direction mask STMPE811_GPIO_DIR, so that any external code that already use this driver will be unchanged. 2. The STMPE811 register GPIO_DIR uses bit value 1 for output and 0 for input, but `stmpe811_gpioconfig` set the opposite. 3. The call to `stmpe811_gpiowrite` from inside of `stmpe811_gpioconfig` leaded to deadlock. Approved-by: Gregory Nutt <gnutt@nuttx.org> |
||
---|---|---|
.. | ||
ads7843e.c | ||
ads7843e.h | ||
ajoystick.c | ||
button_lower.c | ||
button_upper.c | ||
cypress_mbr3108.c | ||
djoystick.c | ||
Kconfig | ||
Make.defs | ||
max11802.c | ||
max11802.h | ||
mxt.c | ||
mxt.h | ||
stmpe811_adc.c | ||
stmpe811_base.c | ||
stmpe811_gpio.c | ||
stmpe811_temp.c | ||
stmpe811_tsc.c | ||
stmpe811.h | ||
tsc2007.c | ||
tsc2007.h |