麻烦问一下LaunchPadXL-28377S的系统初始化官网的例程没有配置这个时钟呢,然后竟然还可以发送数据?
请问是怎么弄的?
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.
在下面的代码内使用
//
// Initialize device clock and peripherals
//
Device_init();
来初始化时钟和外设,您可以具体看一下
而后在 CAN_setBitRate(CANA_BASE, DEVICE_SYSCLK_FREQ, 500000, 16);内使用的是DEVICE_SYSCLK_FREQ
我看了一下程序,时钟的初始化是这个SysCtl_setClock(DEVICE_SETCLOCK_CFG);但是没有找到can的初始化部分啊?我在原函数中查询了并没有初始化can的部分。
那您的意思是不是can的时钟没有初始化直接调用的系统时钟?
那您的意思是不是can的时钟没有初始化直接调用的系统时钟?
是的,您的理解是正确的
您可以看一下用户指南的
https://www.ti.com/lit/ug/spruhx5g/spruhx5g.pdf
Figure 3-5. Clocking System