From 1f1f9ee38a6c2beb38285d550728d9661d0dc698 Mon Sep 17 00:00:00 2001 From: trsaunders Date: Tue, 19 Jun 2012 20:05:01 +0100 Subject: c++ compatibility, FSMC driver for ssd1289 --- touchpad.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'touchpad.h') diff --git a/touchpad.h b/touchpad.h index 2078405a..b8572f0b 100644 --- a/touchpad.h +++ b/touchpad.h @@ -18,6 +18,11 @@ struct cal { float yn; }; +#ifdef __cplusplus +extern "C" { +#endif + + /* * Description: initializes touchpad (SPI) * @@ -74,5 +79,9 @@ uint16_t tpReadZ(void); */ void tpCalibrate(void); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3