GptChannelClkSrcRef - where is it in the code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GptChannelClkSrcRef - where is it in the code

Jump to solution
2,419 Views
Kanaqw
Contributor III

Here's the question. I'm changing config files in tresos, e.g. GptChannelClkSrcRef, but after I generate config, code doesnt change. Gpt_Cfg.c, Gpt_Cfg.h, Gpt_PBcfg.c - all same. Maybe I dont understand something? Code doesnt have errors. Maybe it is in another module (but not in mcu, I've checked that already)

0 Kudos
Reply
1 Solution
2,403 Views
hungnguyenphi
NXP Employee
NXP Employee

Hello @Kanaqw ,

 

If user change the GptChannelClkSrcRef, the value GptChannelTickFrequency will also need to change/update. And it will show to the tick frequency of the timer in the bus with this GPT channel clock(Note that user need to choose the correct reference clock which they have set up by the MCU module). And yes, the GptChannelClkSrcRef will not effect the generated configuration of the GPT channel(but if user choose the wrong reference clock, the real frequency of the GPT channel will be not the same with the GptChannelTickFrequency). But it will effect another module which use this GPT channel (Eg WDG).  

 

Best regards,

Hung

View solution in original post

0 Kudos
Reply
1 Reply
2,404 Views
hungnguyenphi
NXP Employee
NXP Employee

Hello @Kanaqw ,

 

If user change the GptChannelClkSrcRef, the value GptChannelTickFrequency will also need to change/update. And it will show to the tick frequency of the timer in the bus with this GPT channel clock(Note that user need to choose the correct reference clock which they have set up by the MCU module). And yes, the GptChannelClkSrcRef will not effect the generated configuration of the GPT channel(but if user choose the wrong reference clock, the real frequency of the GPT channel will be not the same with the GptChannelTickFrequency). But it will effect another module which use this GPT channel (Eg WDG).  

 

Best regards,

Hung

0 Kudos
Reply