主题中讨论的其他器件:SysConfig
工具与软件:
您好!
syscfg 生成的 ti_msp_dl_config.c 文件存在问题。 如果我们要将 UART1配置为空闲检测模式、则在编译期间会遇到以下错误:
似乎在 SDK 的 dl_UART_main.h 文件中不存在 setAdress 的定义。
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.
工具与软件:
您好!
syscfg 生成的 ti_msp_dl_config.c 文件存在问题。 如果我们要将 UART1配置为空闲检测模式、则在编译期间会遇到以下错误:
似乎在 SDK 的 dl_UART_main.h 文件中不存在 setAdress 的定义。
同时、您没有让 SysConfig 生成必要的代码、而是尝试在 syscfg_DL_init ()之后在 main.c 中进行调用。
例如:
int main(void) { SYSCFG_DL_init(); /* Configure Interrupts */ DL_UART_Extend_enableInterrupt(UART_1_INST, DL_UART_EXTEND_INTERRUPT_RX); /* Set the address mask and the address to match */ DL_UART_Extend_setAddressMask(UART_1_INST, 0); DL_UART_Extend_setAddress(UART_1_INST, 0); DL_UART_Extend_enable(UART_1_INST); NVIC_ClearPendingIRQ(UART_0_INST_INT_IRQN); NVIC_EnableIRQ(UART_0_INST_INT_IRQN); DL_SYSCTL_enableSleepOnExit(); while (1) { __WFI(); } }