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 */
nsh_spifi_initialize();
(void)nsh_spifi_initialize();
#ifdef CONFIG_TIMER
/* Registers the timers */

View File

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

View File

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

View File

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

View File

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

View File

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