diff --git a/configs/tm4c1294-launchpad/src/tm4c_bringup.c b/configs/tm4c1294-launchpad/src/tm4c_bringup.c index 1ac0b95e58..35e1f76027 100644 --- a/configs/tm4c1294-launchpad/src/tm4c_bringup.c +++ b/configs/tm4c1294-launchpad/src/tm4c_bringup.c @@ -44,6 +44,7 @@ #include #include +#include #include #include @@ -65,7 +66,7 @@ # define HAVE_PWM #endif -#ifdef CONFIG_TM4C1294_LAUNCHPAD_QEI +#if defined(CONFIG_TIVA_QEI0) || defined(CONFIG_TIVA_QEI1) # define HAVE_QEI #endif @@ -247,6 +248,7 @@ static void tm4c_pwm(void) * ****************************************************************************/ +#ifdef HAVE_QEI static void tm4c_qei_register(int id) { FAR struct qe_lowerhalf_s *dev; @@ -268,6 +270,7 @@ static void tm4c_qei_register(int id) } } } +#endif /**************************************************************************** * Name: tm4c_qei