工具/软件:Code Composer Studio
When trying GPTimer, there is an expression, which calculates timeout and loads it to GPTimerCC26XX
///将 RX 超时值设置为500ms ////////////////////////////////////////////////////////
rxTimeoutVal =(SysCtrlClockGet()*5UL)/10UL -1UL;
GPTimerCC26XX_setLoadValue (hTimer2、rxTimeoutVal);
有人能解释一下
(SysCtrlClockGet ()*5UL)/10UL - 1UL 正在计算得出以提供500ms 的时间。 \
SysCtrlClockGet()提供了一个微控制器时钟频率48000000,然后是5UL 的含义,以及如何计算它们以得到500ms 的结果?
提前感谢