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:
David Sidrane
2017-05-02 07:40:50 +02:00
committed by Lorenz Meier
parent d1dd6a16f2
commit f7835a8677
4 changed files with 37 additions and 2 deletions
+7
View File
@@ -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