From 88d1fc0a5ef89d152ba42145f2ed4ccb58e853d8 Mon Sep 17 00:00:00 2001 From: Benny Liu Date: Mon, 8 Feb 2021 17:03:11 +0800 Subject: [PATCH] Add trigger sensing pin. --- .../simple_peripheral/cc26xx/app/headstage/Elite_PIN.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/Elite_PIN.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/Elite_PIN.h index fd4535028..a2634fd00 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/Elite_PIN.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/Elite_PIN.h @@ -26,7 +26,6 @@ #define D6 IOID_9 #define D7 IOID_10 -#define FLT IOID_13 #define LOADB IOID_12 #define LOADA IOID_11 @@ -64,6 +63,7 @@ #endif #define switch_on IOID_14 +#define FLT IOID_13 #define TRIG_0 IOID_0 #define TRIG_1 IOID_2 @@ -91,6 +91,7 @@ const PIN_Config BLE_IO[] = { TRIG_0 | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN | PIN_PULLDOWN, TRIG_1 | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN | PIN_PULLDOWN, + FLT | PIN_GPIO_OUTPUT_DIS | PIN_INPUT_EN | PIN_PULLDOWN, PIN_TERMINATE }; @@ -126,6 +127,7 @@ static void remove_elite_pin() { PIN_registerIntCb(pin_handle, trig_callback); PIN_setInterrupt(pin_handle, TRIG_0 | PIN_IRQ_NEGEDGE); PIN_setInterrupt(pin_handle, TRIG_1 | PIN_IRQ_NEGEDGE); + PIN_setInterrupt(pin_handle, FLT | PIN_IRQ_NEGEDGE); } /*!