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

#define  line8  192
            #define  line9  216



            #define  WIDTH  320
            #define  HEIGHT  240
            #define  DELAY_2N  18


            static  void  delay  (int  cnt)
            {
                cnt  <<=  DELAY_2N;
                while  (cnt--);

            }


              __inline  void  wr_cmd  (unsigned  char  c)
             {
                    RS_reset;
                    RD_set;
                    GPIOE->ODR  =  c;
                    WR_reset;
                    WR_set;
            }
            __inline  void  wr_dat  (unsigned  short  c)
            {

                    RS_set;
                    RD_set;
                    GPIOE->ODR  =  c;
                    WR_reset;
                    WR_set;
            }
               /*
            __inline  unsigned  short  rd_dat  (void)
            {

                    unsigned short RD  =0;
                    RS_set;
                    WR_set;
                    RD =  GPIOE ->  IDR;
                    RD_reset;
                    return  RD;
            }




                                                         -  725  -
   727   728   729   730   731   732   733   734   735   736   737