Hellen Nissan defaults are no longer valid #3143
This commit is contained in:
parent
32467de332
commit
5bf52023e7
|
@ -19,6 +19,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static ioportmask_t ext_used = 0;
|
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.
|
// 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) {
|
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 */
|
/* mark used */
|
||||||
ext_used |= PAL_PORT_BIT(index);
|
ext_used |= PAL_PORT_BIT(index);
|
||||||
|
EXT_USED[index] = msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
void efiExtiDisablePin(brain_pin_e brainPin)
|
void efiExtiDisablePin(brain_pin_e brainPin)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* digital_input_exti.h
|
* @file digital_input_exti.h
|
||||||
*
|
*
|
||||||
* Created on: Dec 18, 2018
|
* Created on: Dec 18, 2018
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2020
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
||||||
|
@ -10,6 +10,7 @@
|
||||||
#include "digital_input.h"
|
#include "digital_input.h"
|
||||||
|
|
||||||
#if HAL_USE_PAL
|
#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 efiExtiEnablePin(const char *msg, brain_pin_e pin, uint32_t mode, palcallback_t cb, void *cb_data);
|
||||||
void efiExtiDisablePin(brain_pin_e brainPin);
|
void efiExtiDisablePin(brain_pin_e brainPin);
|
||||||
#endif /* HAL_USE_PAL */
|
#endif /* HAL_USE_PAL */
|
||||||
|
|
Loading…
Reference in New Issue