Page 632 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 632

GPIO_InitStructure.GPIO_Speed  =  GPIO_Speed_50MHz;

                    GPIO_Init(GPIOD,  &GPIO_InitStructure);

                    /*  USART TX  ;  GPIOA.2  :  UART2, GPIOA.9  : UART1 */

                    GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_2  |  GPIO_Pin_9;
                    GPIO_InitStructure.GPIO_Mode  =  GPIO_Mode_AF_PP;
                    GPIO_InitStructure.GPIO_Speed  =  GPIO_Speed_50MHz;
                    GPIO_Init(GPIOA,  &GPIO_InitStructure);


                    /*  USART  RX  ;  GPIOA.3  :  UART2,  GPIOA.10  :  UART1  */
                    GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_3  |  GPIO_Pin_10;
                    GPIO_InitStructure.GPIO_Mode  =  GPIO_Mode_IN_FLOATING;

                    GPIO_Init(GPIOA,  &GPIO_InitStructure);

                    /*MISO  SCLK*/
                    //GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_5  |  GPIO_Pin_6;
                    //GPIO_InitStructure.GPIO_Mode  =  GPIO_Mode_AF_PP;

                    //GPIO_InitStructure.GPIO_Speed  =  GPIO_Speed_50MHz;
                    //GPIO_Init(GPIOA,  &GPIO_InitStructure);

                    /*MOSI*/

                    //GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_7;
                    //GPIO_InitStructure.GPIO_Mode  =  GPIO_Mode_IN_FLOATING;
                    //GPIO_Init(GPIOA,  &GPIO_InitStructure);


                    /*  Configure  USART3  Tx  (PB.10)  as  alternate  function  push-pull  */

                    //GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_10;
                    //GPIO_InitStructure.GPIO_Mode  =  GPIO_Mode_AF_PP;
                    //GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;

                    //GPIO_Init(GPIOB,  &GPIO_InitStructure);

                    /*  Configure USART3  Rx  (PB.11) as  input  floating  */
                    //GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_11;
                    //GPIO_InitStructure.GPIO_Mode  =  GPIO_Mode_IN_FLOATING;

                    //GPIO_Init(GPIOB,  &GPIO_InitStructure);


             }



                                                         -  625  -
   627   628   629   630   631   632   633   634   635   636   637