Create generic Pointing Device Pin defines (#17776)
This commit is contained in:
parent
83f6aedd93
commit
ccdba43e59
6 changed files with 80 additions and 40 deletions
|
@ -66,7 +66,13 @@ _Static_assert(sizeof((pmw33xx_report_t){0}.motion) == 1, "pmw33xx_report_t.moti
|
|||
// Support single and plural spellings
|
||||
#ifndef PMW33XX_CS_PINS
|
||||
# ifndef PMW33XX_CS_PIN
|
||||
# error "No chip select pin defined -- missing PMW33XX_CS_PIN or PMW33XX_CS_PINS"
|
||||
# ifdef POINTING_DEVICE_CS_PIN
|
||||
# define PMW33XX_CS_PIN POINTING_DEVICE_CS_PIN
|
||||
# define PMW33XX_CS_PINS \
|
||||
{ PMW33XX_CS_PIN }
|
||||
# else
|
||||
# error "No chip select pin defined -- missing PMW33XX_CS_PIN or PMW33XX_CS_PINS"
|
||||
# endif
|
||||
# else
|
||||
# define PMW33XX_CS_PINS \
|
||||
{ PMW33XX_CS_PIN }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue