You are here

Use of Clock_SetDividerxxx() functions in Clock component | Cypress Semiconductor

Use of Clock_SetDividerxxx() functions in Clock component

Summary: 1 Reply, Latest post by 3Lance on 29 Aug 2016 01:10 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
user_2432504's picture
User
71 posts

Hello All,

It seems that this bunch of functions doesn't accept a variable name as a parameter, only a numeric constant between 0 & 65535.

    Clock560_SetDivider(u16Freq); => error: 'u16Freq' undeclared (first use in this function)
    Clock560_SetDivider(21000); => OK

Is there a known workaround or a solution?

 

Michel

user_2432504's picture
User
71 posts

Please disregard,

Coding extern uint u16Freq; did the job!

Log in to post new comments.