mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 10:59:30 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user