Add trigger sensing pin.
This commit is contained in:
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user