Page 478 - MDP2020-1
P. 478

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

                /*Configure  GPIO  pins  :  PC0  PC1  PC2  PC3
                                                                  PC6  */
                GPIO_InitStruct.Pin  =  GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
                                                                                                                    //  입력  GPIO  PORT  C  (0,1,2,3,6)

                                                                |GPIO_PIN_6;
                GPIO_InitStruct.Mode  =  GPIO_MODE_INPUT;
                GPIO_InitStruct.Pull  =  GPIO_NOPULL;
                HAL_GPIO_Init(GPIOC,  &GPIO_InitStruct);



                /*Configure  GPIO  pins  :  PA0  PA1  PA2  PA3  */
                GPIO_InitStruct.Pin  =  GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3;
                                                                                                                        //  입력  GPIO  PORT  A  (0,1,2,3)
                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);


                /*Configure  GPIO  pins  :  PD0  PD1  PD2  PD3  */

                GPIO_InitStruct.Pin  =  GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3;
                                                                                                                        //  입력  GPIO  PORT  D  (0,1,2,3)
                GPIO_InitStruct.Mode  =  GPIO_MODE_OUTPUT_PP;
                GPIO_InitStruct.Pull  =  GPIO_NOPULL;
                GPIO_InitStruct.Speed  =  GPIO_SPEED_FREQ_LOW;
                HAL_GPIO_Init(GPIOD,  &GPIO_InitStruct);



            }
   473   474   475   476   477   478   479   480   481   482   483