Page 360 - MDP2020-1
P. 360

|    인천전자마이스터고등학교  ·············································································································
            354

                }
            }


            /**

                *  @brief  GPIO  Initialization  Function
                *  @param  None
                *  @retval  None
                */

            static  void  MX_GPIO_Init(void)
            {
                GPIO_InitTypeDef  GPIO_InitStruct  =  {0};


                /*  GPIO  Ports  Clock  Enable  */
                __HAL_RCC_GPIOC_CLK_ENABLE();

                __HAL_RCC_GPIOA_CLK_ENABLE();


                /*Configure  GPIO  pin  Output  Level  */
                HAL_GPIO_WritePin(GPIOA,  GPIO_PIN_8|GPIO_PIN_9,  GPIO_PIN_RESET);



                /*Configure  GPIO  pins  :  PC6  PC8  */
                GPIO_InitStruct.Pin  =  GPIO_PIN_6|GPIO_PIN_8;
                GPIO_InitStruct.Mode  =  GPIO_MODE_INPUT;
                GPIO_InitStruct.Pull  =  GPIO_NOPULL;
                HAL_GPIO_Init(GPIOC,  &GPIO_InitStruct);



                /*Configure  GPIO  pins  :  PA8  PA9  */
                GPIO_InitStruct.Pin  =  GPIO_PIN_8|GPIO_PIN_9;
                GPIO_InitStruct.Mode  =  GPIO_MODE_OUTPUT_PP;
                GPIO_InitStruct.Pull  =  GPIO_NOPULL;

                GPIO_InitStruct.Speed  =  GPIO_SPEED_FREQ_LOW;
                HAL_GPIO_Init(GPIOA,  &GPIO_InitStruct);


            }



            /*  USER  CODE  BEGIN  4  */


            /*  USER  CODE  END  4  */


            /**

                *  @brief    This  function  is  executed  in  case  of  error  occurrence.
                *  @retval  None
   355   356   357   358   359   360   361   362   363   364   365