请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
部件号:CC2652R 我需要计时器在调试模式下停止。 在 GPTimerCC26XX.h中, GPTimerCC26XX_Params结构中有一个名为debugStallMode的参数,但在Timer.h中,此参数不存在。
如果使用Timer.h中的代码初始化计时器实例,如何将计时器设置为在调试模式下停止?
此致,
双阳
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我需要计时器在调试模式下停止。 在 GPTimerCC26XX.h中, GPTimerCC26XX_Params结构中有一个名为debugStallMode的参数,但在Timer.h中,此参数不存在。
如果使用Timer.h中的代码初始化计时器实例,如何将计时器设置为在调试模式下停止?
此致,
双阳
您好,Shuyang,
GPTimerCC26XX_configureDebugStall从 驱动程序库的Timer.h映射到TimerStallControl。 Timer实例创建的GPTimerCC26XX_Handle包含baseAddr。 尽管默认值为 GPTimerCC26XX_DEBUG_STOR_OFF,但您可以在项目中创建TimerCC26XX.c的副本,该副本会 在 GPTimerCC26XX_OPEN之前将Timer_open中的gptParams.debugStallMode设置为GPTimerCC26XX_DEBUG_STOR_ON。
此致,
Ryan