Page 219 - MDP2022-2
P. 219

/*  Private  macro  --------------------------------------------------------
            -----*/
            /*  USER  CODE  BEGIN  PM  */



            /*  USER  CODE  END  PM  */


            /*  Private  variables  ------------------------------------------------------
            ---*/

            UART_HandleTypeDef  huart2;


            /*  USER  CODE  BEGIN  PV  */
            unsigned  char  a;
            unsigned  char  b;
            /*  USER  CODE  END  PV  */



            /*  Private  function  prototypes  ----------------------------------------------
            -*/
            void  SystemClock_Config(void);

            static  void  MX_GPIO_Init(void);
            static  void  MX_USART2_UART_Init(void);
            /*  USER  CODE  BEGIN  PFP  */


            /*  USER  CODE  END  PFP  */



            /*  Private  user  code  -----------------------------------------------------
            ----*/
            /*  USER  CODE  BEGIN  0  */
            uint8_t  st,  lst,st2,lst2;

            uint8_t  ining,outing,ining_2,outing_2;  //  direction(out)  means  that  mask  box  gives  users
            mask.
            uint8_t  sendData_5='z',sendData_4,sendData,i=0;
            uint8_t  doorClosed  =  0;
            /*  USER  CODE  END  0  */



            /**
                *  @brief    The  application  entry  point.
                *  @retval  int
                */

            int  main(void)
            {
   214   215   216   217   218   219   220   221   222   223   224