Use of Clock_SetDividerxxx() functions in Clock component

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

cross mob
MiKO_283856
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

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

0 Likes
1 Solution
MiKO_283856
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

Please disregard,

   

Coding extern uint u16Freq; did the job!

View solution in original post

0 Likes
1 Reply
MiKO_283856
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

Please disregard,

   

Coding extern uint u16Freq; did the job!

0 Likes