Hellen Nissan defaults are no longer valid #3143

This commit is contained in:
rusefillc 2021-08-12 13:43:38 -04:00
parent 32467de332
commit 5bf52023e7
2 changed files with 8 additions and 1 deletions

View File

@ -19,6 +19,11 @@
*/
static ioportmask_t ext_used = 0;
static const char *EXT_USED[16];
void efiExtiInit() {
memset(EXT_USED, 0, sizeof(EXT_USED));
}
// EXT is not able to give you the front direction but you could read the pin in the callback.
void efiExtiEnablePin(const char *msg, brain_pin_e brainPin, uint32_t mode, palcallback_t cb, void *cb_data) {
@ -54,6 +59,7 @@ void efiExtiEnablePin(const char *msg, brain_pin_e brainPin, uint32_t mode, palc
/* mark used */
ext_used |= PAL_PORT_BIT(index);
EXT_USED[index] = msg;
}
void efiExtiDisablePin(brain_pin_e brainPin)

View File

@ -1,5 +1,5 @@
/*
* digital_input_exti.h
* @file digital_input_exti.h
*
* Created on: Dec 18, 2018
* @author Andrey Belomutskiy, (c) 2012-2020
@ -10,6 +10,7 @@
#include "digital_input.h"
#if HAL_USE_PAL
void efiExtiInit();
void efiExtiEnablePin(const char *msg, brain_pin_e pin, uint32_t mode, palcallback_t cb, void *cb_data);
void efiExtiDisablePin(brain_pin_e brainPin);
#endif /* HAL_USE_PAL */