FR801XH GPIO初始化



    1. 我的设备不睡眠,没有把GPIO交给PMU管理。
      gpio_set_dir(GPIO_PORT_A, GPIO_BIT_0, GPIO_DIR_OUT); //单个IO设置输出
      gpio_porta_set_dir(GPIOA_PIN0_OUT | GPIOA_PIN1_OUT | GPIOA_PIN4_IN | GPIOA_PIN6_OUT | GPIOA_PIN7_OUT); //多个IO 同排设置输出
      下面宏定义 为自己写的 非SDK自带
      #define GPIOA_PIN0_IN (1<<0)
      #define GPIOA_PIN0_OUT (0<<0)
      #define GPIOA_PIN1_IN (1<<1)
      #define GPIOA_PIN1_OUT (0<<1)
      #define GPIOA_PIN2_IN (1<<2)
      #define GPIOA_PIN2_OUT (0<<2)
      #define GPIOA_PIN3_IN (1<<3)
      #define GPIOA_PIN3_OUT (0<<3)
      #define GPIOA_PIN4_IN (1<<4)
      #define GPIOA_PIN4_OUT (0<<4)
      #define GPIOA_PIN5_IN (1<<5)
      #define GPIOA_PIN5_OUT (0<<5)
      #define GPIOA_PIN6_IN (1<<6)
      #define GPIOA_PIN6_OUT (0<<6)
      #define GPIOA_PIN7_IN (1<<7)
      #define GPIOA_PIN7_OUT (0<<7)