2018-12-18 20:50:29 -08:00
|
|
|
/*
|
2021-08-12 10:43:38 -07:00
|
|
|
* @file digital_input_exti.h
|
2018-12-18 20:50:29 -08:00
|
|
|
*
|
|
|
|
* Created on: Dec 18, 2018
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2018-12-18 20:50:29 -08:00
|
|
|
*/
|
|
|
|
|
2020-02-18 05:16:19 -08:00
|
|
|
#pragma once
|
|
|
|
|
2019-04-12 17:52:51 -07:00
|
|
|
#if HAL_USE_PAL
|
2021-11-19 03:37:52 -08:00
|
|
|
|
|
|
|
using ExtiCallback = void(*)(void*, efitick_t);
|
|
|
|
|
2021-08-12 10:43:38 -07:00
|
|
|
void efiExtiInit();
|
2021-11-19 03:37:52 -08:00
|
|
|
void efiExtiEnablePin(const char *msg, brain_pin_e pin, uint32_t mode, ExtiCallback cb, void *cb_data);
|
2019-04-21 06:28:49 -07:00
|
|
|
void efiExtiDisablePin(brain_pin_e brainPin);
|
2022-08-23 16:45:28 -07:00
|
|
|
uint8_t getExtiOverflowCounter();
|
2019-02-05 15:36:25 -08:00
|
|
|
#endif /* HAL_USE_PAL */
|