Missing PWM boardctl logic breaks PWM test.

This commit is contained in:
Gregory Nutt 2015-04-15 21:37:41 -06:00
parent 96aa06bad9
commit 4b5e1389b1
2 changed files with 19 additions and 0 deletions

View File

@ -1596,6 +1596,10 @@ config BOARDCTL_ADCTEST
bool "Enable ADC test interfaces" bool "Enable ADC test interfaces"
default n default n
config BOARDCTL_PWMTEST
bool "Enable PWM test interfaces"
default n
config BOARDCTL_GRAPHICS config BOARDCTL_GRAPHICS
bool "Enable custom graphics initialization interfaces" bool "Enable custom graphics initialization interfaces"
default n default n

View File

@ -141,6 +141,21 @@ int boardctl(unsigned int cmd, uintptr_t arg)
break; break;
#endif #endif
#ifdef CONFIG_BOARDCTL_PWMTEST
/* CMD: BOARDIOC_PWMTEST_SETUP
* DESCRIPTION: PWM controller test configuration
* ARG: None
* CONFIGURATION: CONFIG_LIB_BOARDCTL && CONFIG_BOARDCTL_PWMTEST
* DEPENDENCIES: Board logic must provide board_pwm_setup()
*/
case BOARDIOC_PWMTEST_SETUP:
{
ret = board_pwm_setup();
}
break;
#endif
#ifdef CONFIG_BOARDCTL_GRAPHICS #ifdef CONFIG_BOARDCTL_GRAPHICS
/* CMD: BOARDIOC_GRAPHICS_SETUP /* CMD: BOARDIOC_GRAPHICS_SETUP
* DESCRIPTION: Configure graphics that require special initialization * DESCRIPTION: Configure graphics that require special initialization