diff options
author | Drashna Jaelre <drashna@live.com> | 2022-08-12 16:22:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 16:22:34 -0700 |
commit | ccdba43e59fc42c9a91373c65eaa4a026539dc80 (patch) | |
tree | b6d977bcc6f86906f9c80b0cb98ea919877abca3 /drivers/sensors/paw3204.h | |
parent | 83f6aedd93da04a7bccaa649df6092889b099c04 (diff) |
Create generic Pointing Device Pin defines (#17776)
Diffstat (limited to 'drivers/sensors/paw3204.h')
-rw-r--r-- | drivers/sensors/paw3204.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/sensors/paw3204.h b/drivers/sensors/paw3204.h index bf6dbd04a0..7f487d90dc 100644 --- a/drivers/sensors/paw3204.h +++ b/drivers/sensors/paw3204.h @@ -20,10 +20,18 @@ #include <stdbool.h> #ifndef PAW3204_SCLK_PIN -# error "No clock pin defined -- missing PAW3204_SCLK_PIN" +# ifdef POINTING_DEVICE_SCLK_PIN +# define PAW3204_SCLK_PIN POINTING_DEVICE_SCLK_PIN +# else +# error "No clock pin defined -- missing POINTING_DEVICE_SCLK_PIN or PAW3204_SCLK_PIN" +# endif #endif #ifndef PAW3204_SDIO_PIN -# error "No data pin defined -- missing PAW3204_SDIO_PIN" +# ifdef POINTING_DEVICE_SDIO_PIN +# define PAW3204_SDIO_PIN POINTING_DEVICE_SDIO_PIN +# else +# error "No data pin defined -- missing POINTING_DEVICE_SDIO_PIN or PAW3204_SDIO_PIN" +# endif #endif typedef struct { |