Gerald Ebmer / Mbed 2 deprecated HV_Pulsgenerator

Dependencies:   mbed

Revision:
1:5bceb51fde85
Parent:
0:1df541c54e25
Child:
2:7d25b12db2bc
--- a/main.cpp	Tue Jun 19 08:33:20 2018 +0000
+++ b/main.cpp	Tue Jun 19 09:13:09 2018 +0000
@@ -66,6 +66,7 @@
 
   /* Set the pulse value for channel 2 */
   sConfig.Pulse = 900;
+  sConfig.OCPolarity = TIM_OCPOLARITY_LOW;
   if (HAL_TIM_PWM_ConfigChannel(&TimHandle, &sConfig, TIM_CHANNEL_2) != HAL_OK)
   {
     /* Configuration Error */