diff options
author | Tectu <joel@unormal.org> | 2012-06-11 13:07:44 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-11 13:07:44 +0200 |
commit | af394c2ba201256d869bd214020b60ee587e56ea (patch) | |
tree | 547def3ae6a9a68e9b2ce92ca42e3ed561da9844 | |
parent | ef1197baf14f69d2d1db7137298bc099085f3442 (diff) | |
download | uGFX-af394c2ba201256d869bd214020b60ee587e56ea.tar.gz uGFX-af394c2ba201256d869bd214020b60ee587e56ea.tar.bz2 uGFX-af394c2ba201256d869bd214020b60ee587e56ea.zip |
touchpad init takes different drivers
-rw-r--r-- | touchpad.c | 4 | ||||
-rw-r--r-- | touchpad.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -12,8 +12,8 @@ static const SPIConfig spicfg = { SPI_CR1_SPE | SPI_CR1_BR_2 | SPI_CR1_BR_1 | SPI_CR1_BR_0, }; -void tpInit(void) { - spiStart(&SPID1, &spicfg); +void tpInit(SPIDriver *spip) { + spiStart(spip, &spicfg); } static __inline uint16_t readX(void) { @@ -19,11 +19,11 @@ volatile struct cal { /* * Description: initializes touchpad (SPI) * - * param: none + * param: SPI driver * * return: none */ -void tpInit(void); +void tpInit(SPIDriver *spip); /* * Description: reads out PEN_IRQ from touchpad controller |