cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

StN__1917156
Contributor

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

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator

Hello,

Thanks for pointing out the findings.

I will forward this to our software team. Sorry for the inconvenience caused.

Regards,
Anjana

View solution in original post

1 Reply
AnjanaM_61
Moderator
Moderator

Hello,

Thanks for pointing out the findings.

I will forward this to our software team. Sorry for the inconvenience caused.

Regards,
Anjana

View solution in original post