mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 11:03:35 +08:00
io_timer driver:Only support capture if DIRECT_INPUT_TIMER_CHANNELS > 0
This removes the unused input capture capabilities from the px4io and saves 128 bytes of ram.
This commit is contained in:
committed by
Lorenz Meier
parent
d1dd6a16f2
commit
f7835a8677
@@ -185,6 +185,13 @@
|
||||
# define BOARD_EEPROM_WP_CTRL(on_true)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Defined when a board has capture and uses channels.
|
||||
*/
|
||||
#if defined(DIRECT_INPUT_TIMER_CHANNELS) && DIRECT_INPUT_TIMER_CHANNELS > 0
|
||||
#define BOARD_HAS_CAPTURE 1
|
||||
#endif
|
||||
|
||||
|
||||
/************************************************************************************
|
||||
* Public Data
|
||||
|
||||
Reference in New Issue
Block a user