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

RCC_APB2Periph_AFIO
                                        |RCC_APB2Periph_SPI1, ENABLE );
               // RCC_APB2PeriphClockCmd(RCC_APB2Periph_ALL ,ENABLE );
                  RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM4 | RCC_APB1Periph_USART2
                                        |RCC_APB1Periph_USART3|RCC_APB1Periph_TIM2

                                        , ENABLE );
                      RCC_AHBPeriphClockCmd(RCC_AHBPeriph_DMA1, ENABLE);
             }




             void Display ()
             {
                     GLCD_init ();
                     colors (White, Black); //text color, background
                     window ();
                     LCD_clear ();
                     LCD (line4,"    *ANG","DUDAMA*");
             }


             void init_All_Periph ()
             {
                     RCC_Configuration ();
                     NVIC_Configuration ();
                     GPIO_Configuration ();
                     USART1_Configuration();
                     USART2_Configuration();
             }
             void Delay(vu32 nCount)
             {
             for(; nCount != 0; nCount--);
             }


             int main (void)
             {
                     init_All_Periph ();
                     /* Connect Key Button EXTI Line to Key Button GPIO Pin */
                     GPIO_EXTILineConfig(GPIO_PortSourceGPIOC, GPIO_PinSource13);
                     /* Configure Key Button EXTI Line to generate an interrupt on falling edge */


                     Display ();



                                                         -  299  -
   301   302   303   304   305   306   307   308   309   310   311