cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

MiKO_283856
Contributor

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
Reply
1 Solution
MiKO_283856
Contributor

Please disregard,

   

Coding extern uint u16Freq; did the job!

View solution in original post

0 Likes
Reply
1 Reply
MiKO_283856
Contributor

Please disregard,

   

Coding extern uint u16Freq; did the job!

View solution in original post

0 Likes
Reply