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

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 ();
                                                 //GLCD 기본  설정  함수
                     colors (Blue, White); //text color, background
                                                     //GLCD 색  설정

                     window ();
                     LCD_clear ();
                     LCD (line4,"       RFID","TEST");
             }


             void init_All_Periph ()
             {
                     RCC_Configuration ();
                     NVIC_Configuration ();
                     GPIO_Configuration ();
                     USART1_Configuration();
                     USART2_Configuration();
             }
             int main (void)
             {
                     init_All_Periph ();
                     Display ();
                     while (1);
             }















                                                         -  259  -
   261   262   263   264   265   266   267   268   269   270   271