CYW20819 wiced_hal_gpio_init()

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ToKo_4602001
Level 4
Level 4
50 sign-ins 25 replies posted 25 sign-ins

According to SDK document,

wiced_hal_gpio_init() must be invoked before accessing any GPIO driver services, typically at boot.

But, on wiced_platform_init() in wiced_platform.c, wiced_hal_gpio_select_function() and wiced_hal_gpio_configure_pin() are used without wiced_hal_gpio_init().

Or is wiced_hal_gpio_init() implicitly called in SDK binary code?

When /where should I call wiced_hal_gpio_init() in my program?

Thanks

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi ToKo_4602001 ,

In the current SDK implementation, you don't have to call wiced_hal_gpio_init() explicitly in the code for 20819. Its calling internally.

Regards,

Anjana

View solution in original post

3 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Which device and demo code are you refering to?

0 Likes
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi ToKo_4602001 ,

In the current SDK implementation, you don't have to call wiced_hal_gpio_init() explicitly in the code for 20819. Its calling internally.

Regards,

Anjana

Thank you for your reply.

I'm going to delete this line from our code.

Thanks

0 Likes