Skip to content

Commit 4e563e3

Browse files
hujun260xiaoxiang781216
authored andcommitted
SEGGER_RTT_Conf.h: rm spin_lock_irqsave(NULL) in drivers/segger/config/SEGGER_RTT_Conf.h
Signed-off-by: hujun5 <[email protected]>
1 parent 6256673 commit 4e563e3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/segger/config/SEGGER_RTT_Conf.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,6 @@
7777

7878
#define SEGGER_RTT_MEMCPY_USE_BYTELOOP 0
7979

80-
/* RTT lock configuration */
81-
82-
/* Lock RTT (nestable) (i.e. disable interrupts) */
83-
84-
#define SEGGER_RTT_LOCK() irqstate_t __flags = spin_lock_irqsave(NULL)
85-
86-
/* Unlock RTT (nestable) (i.e. enable previous interrupt lock state) */
87-
88-
#define SEGGER_RTT_UNLOCK() spin_unlock_irqrestore(NULL, __flags)
89-
9080
/* Disable RTT SEGGER_RTT_WriteSkipNoLock */
9181

9282
#define RTT_USE_ASM 0

0 commit comments

Comments
 (0)