Other Parts Discussed in Thread: SYSCONFIG, TMS320F28P650DK, TMS320F28P650SK
Thread 中讨论的其他器件:SysConfig、 TMS320F28P650SK
工具/软件:
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.
Other Parts Discussed in Thread: SYSCONFIG, TMS320F28P650DK, TMS320F28P650SK
工具/软件:
嗨、Kevin、感谢您的重播。
除了 GPIO 初始化之外、我还看到许多其他硬件初始化。 其中一些函数将清除我上一次的初始化。
例如、PIE 表将被 重新初始化。
。
//
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
//
Interrupt_initModule();
//
// Initialize the PIE vector table with pointers to the shell Interrupt
// Service Routines (ISR).
//
Interrupt_initVectorTable();
时钟树工具的时钟配置 也将从 ESC_initHW () 重写。
//
// Sys PLL = 200MHz and use /2 to get 100MHz for ECAT IP
// (There is a built in /4 to get 25MHz for PHY when using
// internal clocking for PHY)
//
SysCtl_setECatClk(SYSCTL_ECATCLKOUT_DIV_2, SYSCTL_SOURCE_SYSPLL,
ESC_DISABLE_INT_PHY_CLK);
//
// Configure EEPROM Size for 16K bits or less
//
ESCSS_configureEEPROMSize(ESC_SS_CONFIG_BASE, ESCSS_LESS_THAN_16K);
从您的回答中 ,我假设实现 EtherCAT_subdevice_cpu1_hal 的方法是重新实现 ESC_initHW (),使其与我们的应用程序兼容。 这是正确的吗?