Page 57 - MDP2022-2
P. 57

/*  USER  CODE  END  Includes  */

            /*  Private  typedef  -----------------------------------------------------------*/
            /*  USER  CODE  BEGIN  PTD  */

            /*  USER  CODE  END  PTD  */

            /*  Private  define  ------------------------------------------------------------*/
            /*  USER  CODE  BEGIN  PD  */
            /*  USER  CODE  END  PD  */

            /*  Private  macro  -------------------------------------------------------------*/
            /*  USER  CODE  BEGIN  PM  */

            /*  USER  CODE  END  PM  */

            /*  Private  variables  ---------------------------------------------------------*/
            TIM_HandleTypeDef  htim3;
            TIM_HandleTypeDef  htim4;


            /*  USER  CODE  BEGIN  PV  */
            volatile  int  duty4  =  0;
            /*  USER  CODE  END  PV  */

            /*  Private  function  prototypes  -----------------------------------------------*/
            void  SystemClock_Config(void);
            static  void  MX_GPIO_Init(void);
            static  void  MX_TIM4_Init(void);
            static  void  MX_TIM3_Init(void);
            /*  USER  CODE  BEGIN  PFP  */

            /*  USER  CODE  END  PFP  */

            /*  Private  user  code  ---------------------------------------------------------*/
            /*  USER  CODE  BEGIN  0  */

            /*  USER  CODE  END  0  */

            /**
                *  @brief    The  application  entry  point.
                *  @retval  int
                */
            int  main(void)
            {
                /*  USER  CODE  BEGIN  1  */

                /*  USER  CODE  END  1  */

                /*  MCU  Configuration--------------------------------------------------------*/


                /*  Reset  of  all  peripherals,  Initializes  the  Flash  interface  and  the  Systick.  */
                HAL_Init();

                /*  USER  CODE  BEGIN  Init  */


                /*  USER  CODE  END  Init  */
   52   53   54   55   56   57   58   59   60   61   62