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.
#if defined(TARGET_IS_MSP432P4XX)#define ROM_UART_initModule ((bool (*)(uint32_t moduleInstance, const eUSCI_UART_Config *config))ROM_UARTTABLE[0])
这是msp432给的例程里面的rom.h文件里的宏定义
实在看不懂这种写法,哪位能解释一下
这是一种常用的宏定义使用方法
意思就是如果定义了TARGET_IS_MSP432P4XX,就执行下面一句的宏定义
这个我知道主要是下面那句
((bool (*)(uint32_t moduleInstance, const eUSCI_UART_Config *config))ROM_UARTTABLE[0])
这个能否分析一下,