mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 17:09:51 +00:00
[posix] use enumerations for RCP bus (#4871)
This commit changes the way to define RCP bus type. It now defines two enumerations for UART and SPI. This ensures only a single bus type is enabled, and helps keep compatible with projects using UART bus.
This commit is contained in:
+2
-2
@@ -74,9 +74,9 @@ OPENTHREAD_PUBLIC_CFLAGS += -DOPENTHREAD_CONFIG_UDP_FORWARD_ENABLE=1
|
||||
endif
|
||||
|
||||
ifeq ($(USE_OT_RCP_BUS), spi)
|
||||
OPENTHREAD_PUBLIC_CFLAGS += -DOPENTHREAD_POSIX_CONFIG_RCP_SPI_ENABLE=1
|
||||
OPENTHREAD_PUBLIC_CFLAGS += -DOPENTHREAD_POSIX_CONFIG_RCP_BUS=OT_POSIX_RCP_BUS_SPI
|
||||
else
|
||||
OPENTHREAD_PUBLIC_CFLAGS += -DOPENTHREAD_POSIX_CONFIG_RCP_UART_ENABLE=1
|
||||
OPENTHREAD_PUBLIC_CFLAGS += -DOPENTHREAD_POSIX_CONFIG_RCP_BUS=OT_POSIX_RCP_BUS_UART
|
||||
endif
|
||||
|
||||
# Enable all optional features for CI tests.
|
||||
|
||||
Reference in New Issue
Block a user