Skip to content
Commit 7ddefbf3 authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Chris Friedt
Browse files

tests: arm: sw_vector_table: fix build on many non systick platforms



In 4c93fcd3, the default use case has been changed to support setting
a custom handler, but it's written in a way to only support MCUX and
SYSTICK based platforms. For any other platform the build break because
of undefined TIMER_IRQ_HANDLER and TIMER_IRQ_NUM.

Fix the conditional so that the custom timer line is only entered if a
custom handler is defined. The test would probably stil not run on those
platforms until a custom case is defined pointing at the custom timer
interrput handler, but at least it won't break CI.

Also drop a closing endif comment as that clearly became misleading.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent 49a1b241
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment