How to put the desired frequency come from ACLK to a GPIO ?

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

cross mob
qzy_4727816
Level 1
Level 1
5 replies posted First reply posted First question asked

Hi,

Now, I can configure the GPIO successful, but I don't know how to put the desired frequency that come from ACLK. Can you give me some advice? Looking forward to your reply! how to put aclk_output_frequency to GPIO.jpg Have a good day to you!

how to put aclk_output_frequency to GPIO.jpg

0 Likes
1 Solution
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi qzy_4727816,

If you look at the parameters of API wiced_hal_aclk_enable(), first parameter is to set the desired output frequency. I would again suggest you to look at /20719-B1_Bluetooth/apps/snip/hal/pwm/hal_pwm.c. Here a GPIO is seletced & configured.

pastedImage_0.png

Desired frequency and other parameters are defined.

pastedImage_1.png

If you right click on the function name and select 'Open Declaration', you will get more details about the function and its parameters.

View solution in original post

5 Replies