aboutsummaryrefslogtreecommitdiff
path: root/drivers/sensors/pmw3320.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sensors/pmw3320.h')
-rw-r--r--drivers/sensors/pmw3320.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sensors/pmw3320.h b/drivers/sensors/pmw3320.h
index cfff25bd8a..c80eb8e145 100644
--- a/drivers/sensors/pmw3320.h
+++ b/drivers/sensors/pmw3320.h
@@ -55,13 +55,13 @@ typedef struct {
int8_t dy;
} report_pmw3320_t;
-const pointing_device_driver_t pmw3320_pointing_device_driver;
+extern const pointing_device_driver_t pmw3320_pointing_device_driver;
// A bunch of functions to implement the PMW3320-specific serial protocol.
// Mostly taken from ADNS5050 driver.
// Note that the "serial.h" driver is insufficient, because it does not
// manually manipulate a serial clock signal.
-void pmw3320_init(void);
+bool pmw3320_init(void);
void pmw3320_sync(void);
uint8_t pmw3320_serial_read(void);
void pmw3320_serial_write(uint8_t data);