score: Remove ISR_LOCK_DEFINE()

Use ISR_LOCK_NEEDS_OBJECT to determine if a lock object is needed.

Update #4957 and #5038.
This commit is contained in:
Sebastian Huber
2024-06-21 08:10:27 +02:00
parent 050b61aab6
commit bdbda6a75f
10 changed files with 32 additions and 26 deletions
+3 -1
View File
@@ -98,7 +98,9 @@ static void test_watchdog_init( test_watchdog *watchdog, int counter )
static uint64_t test_watchdog_tick( Watchdog_Header *header, uint64_t now )
{
ISR_LOCK_DEFINE( , lock, "Test" )
#if ISR_LOCK_NEEDS_OBJECT
ISR_lock_Control lock = ISR_LOCK_INITIALIZER( "Test" );
#endif
ISR_lock_Context lock_context;
Watchdog_Control *first;