Missing functions: Cy_SysClk_ClkPathGetFrequency() and Cy_SysClk_ClkHfGetFrequency()

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

cross mob
SaGa_4641021
Level 4
Level 4
50 questions asked 50 replies posted 100 sign-ins

Hi

The PSoC-6 PDL lists some Clock functions, but when I use them in PSoC Creator, they are not identified or declared.

these include:

Cy_SysClk_ClkPathGetFrequency() and Cy_SysClk_ClkHfGetFrequency()

I am using PDL 3.1.5

Do I have to include certain headers or libraries to the project ?

thanks

0 Likes
1 Solution
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

Those APIs are available in the latest ModusToolbox PDL. You can find here:

https://github.com/Infineon/mtb-pdl-cat1

https://github.com/Infineon/mtb-pdl-cat1/blob/master/drivers/source/cy_sysclk.c

You will not be able to use this PDL version directly in PSoC Creator, but you can copy and paste the implementation to your project.

View solution in original post

8 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

I don't find these two functions included in the PDL 3.1.5, where do you find them? Also, I don't find out them in PDL website.

0 Likes
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

PDL 3.1.5 doesn't offer these two clock API.

SaGa_4641021
Level 4
Level 4
50 questions asked 50 replies posted 100 sign-ins

So is there a way I can access these functions ? as long as they are listed in the online PDL. may they are associated with a certain PDL build.

0 Likes
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

The PDL you choose  doesn't support these two APIs, so it is no way to access.

 

SaGa_4641021
Level 4
Level 4
50 questions asked 50 replies posted 100 sign-ins

how can I identify the PDL that is associated with specific functions ? I can't see this information on the PDL page 

0 Likes

Now, the APIs not offered in the latest PDL version.

0 Likes
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

Those APIs are available in the latest ModusToolbox PDL. You can find here:

https://github.com/Infineon/mtb-pdl-cat1

https://github.com/Infineon/mtb-pdl-cat1/blob/master/drivers/source/cy_sysclk.c

You will not be able to use this PDL version directly in PSoC Creator, but you can copy and paste the implementation to your project.