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

GLCD_displayStringLn(Line7,    itc1);

                                            GLCD_displayStringLn(Line6, "Car1 Passed");

                                            flag1 = 1;


                                            //flag set(it means that this Switch already Pushed)
                                            }



                                    }

                                    if(GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_10))
                                    {
                                            SCM2=1;

                                            GLCD_displayStringLn(Line8, "Car2 Detected");

                                            Scount2 =0;
                                            flag2 = 0;
                                    }

                                    if(GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_11))

                                    {
                                            if(flag2)
                                            {}

                                            else{

                                            SCM2=0;
                                            InttoChar(((uint16_t)48*100)/((uint16_t)Scount2),2);
                                            USART1Write(CardDataBox,CardIDSize+1);

                                            USART1Write(itc2,5);

                                            USART1_SendByte(tmp);
                                            GLCD_displayStringLn(Line9,    itc2);
                                            GLCD_displayStringLn(Line8, "Car2 Passed");

                                            flag2 = 1;

                                             }
                                    }
            }




            void Scan_Cds(int pstat)




                                                         -  187  -
   189   190   191   192   193   194   195   196   197   198   199