Corrects some warnings and link problems introduced in the last big commits.

This commit is contained in:
Gregory Nutt 2016-12-05 17:24:25 -06:00
parent ee2852f5ff
commit d829c03656
6 changed files with 21 additions and 17 deletions

View File

@ -164,7 +164,7 @@ int board_app_initialize(uintptr_t arg)
{ {
/* Initialize the SPIFI block device */ /* Initialize the SPIFI block device */
nsh_spifi_initialize(); (void)nsh_spifi_initialize();
#ifdef CONFIG_TIMER #ifdef CONFIG_TIMER
/* Registers the timers */ /* Registers the timers */

View File

@ -85,8 +85,6 @@
# undef HAVE_PWM # undef HAVE_PWM
#endif #endif
#ifdef HAVE_PWM
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/
@ -101,6 +99,7 @@
int stm32_pwm_setup(void) int stm32_pwm_setup(void)
{ {
#ifdef HAVE_PWM
static bool initialized = false; static bool initialized = false;
struct pwm_lowerhalf_s *pwm; struct pwm_lowerhalf_s *pwm;
int ret; int ret;
@ -133,6 +132,8 @@ int stm32_pwm_setup(void)
} }
return OK; return OK;
#else
return -ENOSYS;
#endif
} }
#endif /* HAVE_PWM */

View File

@ -85,8 +85,6 @@
# undef HAVE_PWM # undef HAVE_PWM
#endif #endif
#ifdef HAVE_PWM
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/
@ -101,6 +99,7 @@
int stm32_pwm_setup(void) int stm32_pwm_setup(void)
{ {
#ifdef HAVE_PWM
static bool initialized = false; static bool initialized = false;
struct pwm_lowerhalf_s *pwm; struct pwm_lowerhalf_s *pwm;
int ret; int ret;
@ -133,6 +132,8 @@ int stm32_pwm_setup(void)
} }
return OK; return OK;
#else
return -ENOSYS;
#endif
} }
#endif /* HAVE_PWM */

View File

@ -85,8 +85,6 @@
# undef HAVE_PWM # undef HAVE_PWM
#endif #endif
#ifdef HAVE_PWM
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/
@ -101,6 +99,7 @@
int stm32_pwm_setup(void) int stm32_pwm_setup(void)
{ {
#ifdef HAVE_PWM
static bool initialized = false; static bool initialized = false;
struct pwm_lowerhalf_s *pwm; struct pwm_lowerhalf_s *pwm;
int ret; int ret;
@ -133,6 +132,8 @@ int stm32_pwm_setup(void)
} }
return OK; return OK;
#else
return -ENOSYS;
#endif
} }
#endif /* HAVE_PWM */

View File

@ -83,8 +83,6 @@
# undef HAVE_PWM # undef HAVE_PWM
#endif #endif
#ifdef HAVE_PWM
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/
@ -99,6 +97,7 @@
int stm32_pwm_setup(void) int stm32_pwm_setup(void)
{ {
#ifdef HAVE_PWM
static bool initialized = false; static bool initialized = false;
struct pwm_lowerhalf_s *pwm; struct pwm_lowerhalf_s *pwm;
int ret; int ret;
@ -131,6 +130,7 @@ int stm32_pwm_setup(void)
} }
return OK; return OK;
#else
return -ENOSYS;
#endif
} }
#endif /* HAVE_PWM */

View File

@ -85,8 +85,6 @@
# undef HAVE_PWM # undef HAVE_PWM
#endif #endif
#ifdef HAVE_PWM
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ************************************************************************************/
@ -101,6 +99,7 @@
int stm32_pwm_setup(void) int stm32_pwm_setup(void)
{ {
#ifdef HAVE_PWM
static bool initialized = false; static bool initialized = false;
struct pwm_lowerhalf_s *pwm; struct pwm_lowerhalf_s *pwm;
int ret; int ret;
@ -133,6 +132,8 @@ int stm32_pwm_setup(void)
} }
return OK; return OK;
#else
return -ENOSYS;
#endif
} }
#endif /* HAVE_PWM */