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

GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_0  |  GPIO_Pin_1  |  GPIO_Pin_2  |  GPIO_Pin_3;
                  GPIO_InitStructure.GPIO_Mode  =  GPIO_Mode_Out_PP;
                 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;

                    GPIO_Init(GPIOC,  &GPIO_InitStructure);

               /*  Configure Interrupt Pin */
                GPIO_InitStructure.GPIO_Pin  =  GPIO_Pin_5  |  GPIO_Pin_6  |  GPIO_Pin_7  |  GPIO_Pin_8  |
            GPIO_Pin_9  |  GPIO_Pin_10  |  GPIO_Pin_11  |  GPIO_Pin_12  |  GPIO_Pin_13;
                GPIO_InitStructure.GPIO_Mode  =  GPIO_Mode_IN_FLOATING;
                 GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
                    GPIO_Init(GPIOB,  &GPIO_InitStructure);
            }


            void  NVIC_Configuration(void)
            {
                NVIC_InitTypeDef  NVIC_InitStructure;



                    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_0);
               #ifdef  VECT_TAB_RAM
                 NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0);
               #else
                 NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0);
               #endif


                /*  인터럽트  설정  */
                NVIC_InitStructure.NVIC_IRQChannel  =  EXTI9_5_IRQn;
                NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority  =  0;
                NVIC_InitStructure.NVIC_IRQChannelSubPriority  =  0;
                NVIC_InitStructure.NVIC_IRQChannelCmd  =  ENABLE;


                NVIC_InitStructure.NVIC_IRQChannel  =  EXTI15_10_IRQn;
                NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority  =  0;
                NVIC_InitStructure.NVIC_IRQChannelSubPriority  =  0;
                NVIC_InitStructure.NVIC_IRQChannelCmd  =  ENABLE;



                NVIC_Init(&NVIC_InitStructure);
            }


            void  RCC_Configuration(void)
            {



                                                         -  379  -
   381   382   383   384   385   386   387   388   389   390   391