From af394c2ba201256d869bd214020b60ee587e56ea Mon Sep 17 00:00:00 2001 From: Tectu Date: Mon, 11 Jun 2012 13:07:44 +0200 Subject: touchpad init takes different drivers --- touchpad.c | 4 ++-- touchpad.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/touchpad.c b/touchpad.c index 1430387d..6f786f77 100644 --- a/touchpad.c +++ b/touchpad.c @@ -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) { diff --git a/touchpad.h b/touchpad.h index e6fbcb50..97efb09d 100644 --- a/touchpad.h +++ b/touchpad.h @@ -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 -- cgit v1.2.3