SYSCFG配置

代码部分
 //第一个传感器
                if( DL_GPIO_readPins(xunji_PORT_PIN1_PORT                 , xunji_PORT_PIN1_PIN       )==xunji_PORT_PIN1_PIN)            //黑,不亮     高
               {
                a=1;
               }
              if( DL_GPIO_readPins(xunji_PORT_PIN1_PORT                  , xunji_PORT_PIN1_PIN       )!=xunji_PORT_PIN1_PIN)             //白  亮      低
               {
                a=0;
               }
                //第二个传感器
                if( DL_GPIO_readPins(xunji_PORT_PIN2_PORT                 , xunji_PORT_PIN2_PIN       )==xunji_PORT_PIN2_PIN)            //黑,不亮     高
               {
                a2=1;
               }
              if( DL_GPIO_readPins(xunji_PORT_PIN2_PORT                  , xunji_PORT_PIN2_PIN       )!=xunji_PORT_PIN2_PIN)             //白  亮      低
               {
                a2=0;
               }
                 //第三个传感器
                if( DL_GPIO_readPins(xunji_PORT_PIN3_PORT                 , xunji_PORT_PIN3_PIN       )==xunji_PORT_PIN3_PIN)            //黑,不亮     高
               {
                a3=1;
               }
              if( DL_GPIO_readPins(xunji_PORT_PIN3_PORT                  , xunji_PORT_PIN3_PIN       )!=xunji_PORT_PIN3_PIN)             //白  亮      低
               {
                a3=0;
               }
         //第四个传感器
                if( DL_GPIO_readPins(xunji_PORT_PIN4_PORT                 , xunji_PORT_PIN4_PIN       )==xunji_PORT_PIN4_PIN)            //黑,不亮     高
               {
                a4=1;
               }
              if( DL_GPIO_readPins(xunji_PORT_PIN4_PORT                  , xunji_PORT_PIN4_PIN       )!=xunji_PORT_PIN4_PIN)             //白  亮      低
               {
                a4=0;
               }
 
if( DL_GPIO_readPins(xunji_PORT_PIN1_PORT , xunji_PORT_PIN1_PIN )==xunji_PORT_PIN1_PIN)
这句作用是判断为高电平
if( DL_GPIO_readPins(xunji_PORT_PIN1_PORT , xunji_PORT_PIN1_PIN )!=xunji_PORT_PIN1_PIN)
作用为判断为低电平










![[FreeRTOS 基础知识] 互斥量 概念](https://i-blog.csdnimg.cn/direct/13c74441253f499287398625950c0dfd.png)






