drivers: serial: serial_test: Move ring buf dep to Kconfig
This commit moves the dependency management between the RING_BUFFER and UART_ASYNC_API or UART_INTERRUPT_DRIVEN options to the Kconfig Kconfig.test. If either UART API options listed are selected, the RING_BUFFER option must be selected. This is now handled automatically by Kconfig instead of causing a build assert. The asserts where added with this PR #59880, and are removed in this commit. Signed-off-by: Bjarki Arge Andreasen <baa@trackunit.com>
This commit is contained in:
parent
ebd6681589
commit
d118d19293
|
@ -8,3 +8,4 @@ config SERIAL_TEST
|
|||
select SERIAL_HAS_DRIVER
|
||||
select SERIAL_SUPPORT_INTERRUPT
|
||||
select SERIAL_SUPPORT_ASYNC
|
||||
select RING_BUFFER if (UART_INTERRUPT_DRIVEN || UART_ASYNC_API)
|
||||
|
|
|
@ -21,9 +21,6 @@
|
|||
|
||||
LOG_MODULE_REGISTER(mock_serial, CONFIG_LOG_DEFAULT_LEVEL);
|
||||
|
||||
BUILD_ASSERT(!IS_ENABLED(CONFIG_UART_INTERRUPT_DRIVEN) || IS_ENABLED(CONFIG_RING_BUFFER));
|
||||
BUILD_ASSERT(!IS_ENABLED(CONFIG_UART_ASYNC_API) || IS_ENABLED(CONFIG_RING_BUFFER));
|
||||
|
||||
#define DT_DRV_COMPAT vnd_serial
|
||||
struct serial_vnd_data {
|
||||
#ifdef CONFIG_RING_BUFFER
|
||||
|
|
Loading…
Reference in a new issue