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.

simpliciTI例程中的UART_Bridge



由于CC1110的UART_Bridge是基于ED对ED的,最近打算把它移植到AP上,用官方的AP_as_Data_Hub工程。

但在移植的过程中发现只要加入 #include <uart.h>这个头文件后,编译立马就会报错:

Fatal Error[Pe035]: #error directive: "The macros UART_NUMBER and UART_LOCATION must be defined for 8051 processors." 

根据描述应该是没有定义UART_NUMBER和UART_LOCATION 这两个宏导致的,但我即使是在UART_Bridge工程中也没有找到UART_NUMBER和UART_LOCATION的定义呀?

只找到了UART_NUMBER_0、UART_NUMBER_1和UART_LOCATION_0、UART_LOCATION_1的宏定义。

请问这个问题该如何解决呢?