Merged in paulpatience/nuttx-arch (pull request #18)

STM32 PWM: Add ifdef for STM32F30XX
This commit is contained in:
Gregory Nutt 2015-10-09 15:57:28 -06:00
commit 53ac085c77

View File

@ -1312,8 +1312,8 @@ static int pwm_shutdown(FAR struct pwm_lowerhalf_s *dev)
#if defined(CONFIG_STM32_STM32F10XX)
pincfg |= (GPIO_INPUT | GPIO_CNF_INFLOAT | GPIO_MODE_INPUT);
#elif defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX) || \
defined(CONFIG_STM32_STM32L15XX)
#elif defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F30XX) || \
defined(CONFIG_STM32_STM32F40XX) || defined(CONFIG_STM32_STM32L15XX)
pincfg |= (GPIO_INPUT | GPIO_FLOAT);
#else
# error "Unrecognized STM32 chip"