Create generic Pointing Device Pin defines (#17776)
This commit is contained in:
@ -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 }
|
||||
|
Reference in New Issue
Block a user