diff Discovery/Src/stm32f4xx_hal_msp_hw2.c @ 130:b7689d9e888a FlipDisplay

Minor changes to improved code quality and to eliminate warnings
author Ideenmodellierer
date Sun, 17 Feb 2019 21:22:13 +0100
parents 626191e1fed1
children 879709909dd6
line wrap: on
line diff
--- a/Discovery/Src/stm32f4xx_hal_msp_hw2.c	Sun Feb 17 21:14:09 2019 +0100
+++ b/Discovery/Src/stm32f4xx_hal_msp_hw2.c	Sun Feb 17 21:22:13 2019 +0100
@@ -393,7 +393,7 @@
     GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9;
     GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
     GPIO_InitStruct.Pull = GPIO_NOPULL;
-    GPIO_InitStruct.Speed = /* Decision is based on errata which recommends FAST for GPIO at 90Mhz */
+    GPIO_InitStruct.Speed = GPIO_SPEED_FAST; /* Decision is based on errata which recommends FAST for GPIO at 90Mhz */
     GPIO_InitStruct.Alternate = GPIO_AF5_SPI5;
     HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
 
@@ -502,6 +502,7 @@
         HAL_NVIC_SetPriority(TIMx_IRQn, 2, 1);
         HAL_NVIC_EnableIRQ(TIMx_IRQn);
     }
+#ifdef DEMOMODE
   if(htim_base->Instance==TIM7)
   {
     __TIM7_CLK_ENABLE();
@@ -509,6 +510,7 @@
         HAL_NVIC_SetPriority(TIM7_IRQn, 2, 0);
         HAL_NVIC_EnableIRQ(TIM7_IRQn);
     }
+#endif
 }
 
 void HAL_TIM_PWM_MspDeInit(TIM_HandleTypeDef* htim_pwm)