docs
This commit is contained in:
parent
ae3ec77677
commit
82a9c8fe91
|
@ -18,6 +18,7 @@
|
||||||
*
|
*
|
||||||
* rus084 is reminding that EXTI could be enough for our needs
|
* rus084 is reminding that EXTI could be enough for our needs
|
||||||
* See joystick.cpp
|
* See joystick.cpp
|
||||||
|
* See trigger_input.cpp
|
||||||
*
|
*
|
||||||
* @date Jun 23, 2013
|
* @date Jun 23, 2013
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2018
|
* @author Andrey Belomutskiy, (c) 2012-2018
|
||||||
|
@ -271,4 +272,4 @@ void startInputDriver(digital_input_s *hw, bool isActiveHigh) {
|
||||||
hw->started = true;
|
hw->started = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* EFI_WAVE_ANALYZER */
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
* be using same EXTI line. See https://stm32f4-discovery.net/2014/08/stm32f4-external-interrupts-tutorial/
|
* be using same EXTI line. See https://stm32f4-discovery.net/2014/08/stm32f4-external-interrupts-tutorial/
|
||||||
* See also comments in digital_input_hw.cpp
|
* See also comments in digital_input_hw.cpp
|
||||||
*
|
*
|
||||||
|
*
|
||||||
|
* TODO: In release 18.2.0 the EXT driver is no more provided for STM32, there is a PAL demo under /testhal/STM32/multi/PAL with examples of callbacks and synchronous API.
|
||||||
|
*
|
||||||
* @date Jan 2, 2015
|
* @date Jan 2, 2015
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2018
|
* @author Andrey Belomutskiy, (c) 2012-2018
|
||||||
*/
|
*/
|
||||||
|
@ -139,6 +142,7 @@ static uint32_t getExtMode(ioportid_t port) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// EXT is not able to give you the front direction but you could read the pin in the callback.
|
||||||
static void enableExti(brain_pin_e pin, extcallback_t cb) {
|
static void enableExti(brain_pin_e pin, extcallback_t cb) {
|
||||||
if (pin == GPIO_UNASSIGNED)
|
if (pin == GPIO_UNASSIGNED)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
* @file trigger_input.cpp
|
* @file trigger_input.cpp
|
||||||
* @brief Position sensor hardware layer
|
* @brief Position sensor hardware layer
|
||||||
*
|
*
|
||||||
|
* todo: code reuse with digital_input_hw.cpp was never finished
|
||||||
|
* todo: at the moment due to half-done code reuse we depend on EFI_WAVE_ANALYZER which makes no sense, need to finish this refactoring
|
||||||
|
* todo: VVT implementation is a nasty copy-paste :(
|
||||||
|
*
|
||||||
|
* see digital_input_hw.cp
|
||||||
|
*
|
||||||
* @date Dec 30, 2012
|
* @date Dec 30, 2012
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2018
|
* @author Andrey Belomutskiy, (c) 2012-2018
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue