make fifo access mode fixed addr work with 16 bit also

This commit is contained in:
hathach
2025-12-16 00:19:13 +07:00
parent 77fcf62f9f
commit 0a9e05f47a
5 changed files with 80 additions and 51 deletions

View File

@ -113,7 +113,7 @@ add_ceedling_test(
${CEEDLING_WORKDIR}/../../src/common/tusb_fifo.c
""
)
target_compile_definitions(test_fifo PRIVATE CFG_TUSB_FIFO_ACCESS_FIXED_ADDR_RW32=1)
target_compile_definitions(test_fifo PRIVATE CFG_TUSB_FIFO_ACCESS_FIXED_ADDR_WIDTH=32)
add_ceedling_test(
test_usbd

View File

@ -128,7 +128,7 @@
:defines:
:test:
- _UNITY_TEST_
- CFG_TUSB_FIFO_ACCESS_FIXED_ADDR_RW32
- CFG_TUSB_FIFO_ACCESS_FIXED_ADDR_WIDTH=32
:release: []
# Enable to inject name of a test as a unique compilation symbol into its respective executable build.