mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_DISCO_F303VC/pwmout_api.c
- Revision:
- 241:ffe41b0c8126
- Parent:
- 227:7bd0639b8911
- Child:
- 250:a49055e7a707
diff -r 9a7c54113eaf -r ffe41b0c8126 targets/hal/TARGET_STM/TARGET_DISCO_F303VC/pwmout_api.c --- a/targets/hal/TARGET_STM/TARGET_DISCO_F303VC/pwmout_api.c Thu Jun 26 09:45:08 2014 +0100 +++ b/targets/hal/TARGET_STM/TARGET_DISCO_F303VC/pwmout_api.c Thu Jun 26 10:30:09 2014 +0100 @@ -27,11 +27,13 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ******************************************************************************* */ -#include "mbed_assert.h" #include "pwmout_api.h" +#if DEVICE_PWMOUT + #include "cmsis.h" #include "pinmap.h" +#include "error.h" // TIM2 cannot be used because already used by the us_ticker static const PinMap PinMap_PWM[] = { @@ -272,3 +274,5 @@ float value = (float)us / (float)obj->period; pwmout_write(obj, value); } + +#endif