The cc2530 button driver would fail to compile if the user disabled button support
This commit is contained in:
parent
0d4b90c42b
commit
cc76c649b1
|
@ -69,14 +69,12 @@
|
||||||
#endif /* BUTTON_SENSOR_CONF_ON */
|
#endif /* BUTTON_SENSOR_CONF_ON */
|
||||||
|
|
||||||
#define button_sensor button_1_sensor
|
#define button_sensor button_1_sensor
|
||||||
|
extern const struct sensors_sensor button_1_sensor;
|
||||||
|
extern const struct sensors_sensor button_2_sensor;
|
||||||
|
|
||||||
#if BUTTON_SENSOR_ON
|
#if BUTTON_SENSOR_ON
|
||||||
/* Common */
|
|
||||||
extern const struct sensors_sensor button_1_sensor;
|
|
||||||
|
|
||||||
#if MODEL_CC2531
|
#if MODEL_CC2531
|
||||||
/* USB Dongle */
|
/* USB Dongle */
|
||||||
extern const struct sensors_sensor button_2_sensor;
|
|
||||||
/* Buttons: P1_2 & P1_3 - Port 1 ISR needed */
|
/* Buttons: P1_2 & P1_3 - Port 1 ISR needed */
|
||||||
void port_1_isr(void) __interrupt(P1INT_VECTOR);
|
void port_1_isr(void) __interrupt(P1INT_VECTOR);
|
||||||
#define BUTTON_SENSOR_ACTIVATE() do { \
|
#define BUTTON_SENSOR_ACTIVATE() do { \
|
||||||
|
|
Loading…
Reference in a new issue