Skip to content

Commit

Permalink
SEGGER_RTT_Conf.h: rm spin_lock_irqsave(NULL) in drivers/segger/confi…
Browse files Browse the repository at this point in the history
…g/SEGGER_RTT_Conf.h

Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 committed Jan 6, 2025
1 parent 3e05539 commit 5e7c640
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/segger/config/SEGGER_RTT_Conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,6 @@

#define SEGGER_RTT_MEMCPY_USE_BYTELOOP 0

/* RTT lock configuration */

/* Lock RTT (nestable) (i.e. disable interrupts) */

#define SEGGER_RTT_LOCK() irqstate_t __flags = spin_lock_irqsave(NULL)

/* Unlock RTT (nestable) (i.e. enable previous interrupt lock state) */

#define SEGGER_RTT_UNLOCK() spin_unlock_irqrestore(NULL, __flags)

/* Disable RTT SEGGER_RTT_WriteSkipNoLock */

#define RTT_USE_ASM 0
Expand Down

0 comments on commit 5e7c640

Please sign in to comment.