zephyr/subsys/usb/usb_c
Michał Barnaś e0fbd35fc0 usbc: explicitly declare sizes of state machines arrays
The asserts in the USB-C stack functions were causing compilation
errors when asserts were enabled in Kconfig.
This was caused because the asserts checked if the functions
parameters were within limits specified by the state machine arrays.
At the position of these asserts, these arrays were only declared
without specifying the size of them, what prohibited the asserts from
knowing the size of arrays and checking if specified value is within
limit of it.

Signed-off-by: Michał Barnaś <mb@semihalf.com>
2023-03-03 09:17:11 +01:00
..
CMakeLists.txt usb-c: Refactor USB-C Subsystem Sink 2023-01-05 10:34:06 +01:00
Kconfig usb-c: Refactor USB-C Subsystem Sink 2023-01-05 10:34:06 +01:00
usbc_pe_common_internal.h usb_c: Add super state to handle Sender Response Timer 2023-02-21 18:04:04 -05:00
usbc_pe_common.c usbc: explicitly declare sizes of state machines arrays 2023-03-03 09:17:11 +01:00
usbc_pe_snk_states_internal.h usb_c: Refactor Sink common code 2023-01-20 12:17:44 +01:00
usbc_pe_snk_states.c usb_c: Add super state to handle Sender Response Timer 2023-02-21 18:04:04 -05:00
usbc_prl.c usbc: explicitly declare sizes of state machines arrays 2023-03-03 09:17:11 +01:00
usbc_prl.h usb_c: Refactor Sink common code 2023-01-20 12:17:44 +01:00
usbc_stack.c usb_c: run clang-format 2023-01-05 10:34:06 +01:00
usbc_stack.h usb_c: Refactor Sink common code 2023-01-20 12:17:44 +01:00
usbc_tc_common_internal.h usb_c: Refactor Sink common code 2023-01-20 12:17:44 +01:00
usbc_tc_common.c usbc: explicitly declare sizes of state machines arrays 2023-03-03 09:17:11 +01:00
usbc_tc_snk_states_internal.h usb-c: Refactor USB-C Subsystem Sink 2023-01-05 10:34:06 +01:00
usbc_tc_snk_states.c usb_c: run clang-format 2023-01-05 10:34:06 +01:00
usbc_timer.c usb_c: run clang-format 2023-01-05 10:34:06 +01:00
usbc_timer.h usb_c: run clang-format 2023-01-05 10:34:06 +01:00