1 Reply Latest reply on Jun 26, 2019 10:27 AM by AnjanaM_61

    Bug Report: Wiced_006.002.001.0002 / wiced_hal_gpio_configure_pin()

    StN._1917156

      Platform CYW20719/CYBT_413034_EVAL

       

      wiced_hal_gpio_configure_pin() with config param = GPIO_OUTPUT_ENABLE (16384) fails

       

      Attached are logs and used code (only added extra TRACEs to snip/hal/gpio example)

       

      wiced_hal_gpio_configure_pin(output_pin_list[index], GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_HIGH); //fails

       

      WICED_BT_TRACE("BeforeO pin: %d  cfg: %d default: %d\n\r",

      output_pin_list[index],

      GPIO_OUTPUT_ENABLE,

      GPIO_PIN_OUTPUT_HIGH);

       

      //prints: BeforeO pin: 26  cfg: 16384 default: 1

       

      WICED_BT_TRACE("AfterO pin: %d  cfg: %d default: %d\n\r",

      output_pin_list[index],

      wiced_hal_gpio_get_pin_config(output_pin_list[index]),

      wiced_hal_gpio_get_pin_output(output_pin_list[index]));

       

             //prints: AfterO pin: 26  cfg: 0 default: 1

       

      Also proposal – better wiced_hal_gpio_configure_pin to return Ok|ErrorCode instead void