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

(마)  Main  :  메인  파일입니다.



             Main.c


             #include  "stm32f10x.h"

             #include  "USART.h"
             #include  "GLCD.h"
             #include  "INTERRUPT.h"



             //  Define  Section


             #define  Black                      0x0000  /*      0,      0,      0  */
             #define  Navy                        0x000F            /*      0,      0,  128  */

             #define  DarkGreen              0x03E0            /*      0,  128,      0  */
             #define  DarkCyan                0x03EF            /*      0,  128,  128  */
             #define  Maroon                    0x7800            /*  128,      0,      0  */
             #define  Purple                    0x780F            /*  128,      0,  128  */
             #define  Olive                      0x7BE0            /*  128,  128,      0  */

             #define  LightGrey              0xC618            /*  192,  192,  192  */
             #define  DarkGrey                0x7BEF            /*  128,  128,  128  */
             #define  Blue                        0x001F            /*      0,      0,  255  */

             #define  Green                      0x07E0            /*      0,  255,      0  */
             #define  Cyan                        0x07FF            /*      0,  255,  255  */
             #define  Red                          0xF800            /*  255,      0,      0  */
             #define  Magenta                  0xF81F            /*  255,      0,  255  */
             #define  Yellow                    0xFFE0            /*  255,  255,  0      */

             #define  White                      0xFFFF            /*  255,  255,  255  */


             //  Pre-definition



             void  GPIO_Configuration(void);  //  GPIO  Setting
             void  NVIC_Configuration(void);  //  Interrupt  Setting
             void  RCC_Configuration(void);  //  Enable  Setting
             void  Delay(vu32  nCount);  //  Delay  Setting

             void  Display(void);  //  Display  Init
             void  init_All_Periph(void);  //  Initial  All  Functions





                                                         -  623  -
   625   626   627   628   629   630   631   632   633   634   635