19 lines
423 B
C
19 lines
423 B
C
/*
|
|
* @file digital_input_exti.h
|
|
*
|
|
* Created on: Dec 18, 2018
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if HAL_USE_PAL
|
|
|
|
using ExtiCallback = void(*)(void*, efitick_t);
|
|
|
|
void efiExtiInit();
|
|
int efiExtiEnablePin(const char *msg, brain_pin_e pin, uint32_t mode, ExtiCallback cb, void *cb_data);
|
|
void efiExtiDisablePin(brain_pin_e brainPin);
|
|
uint8_t getExtiOverflowCounter();
|
|
#endif /* HAL_USE_PAL */
|