Skip to content

Commit

Permalink
memutils: simple_fifo: Modify asm to __asm__
Browse files Browse the repository at this point in the history
If compile options include --std=c99, not asm but __asm__ statement need be used.
Such case occurs if externals/nrf52/ is included in built source, for examples.
  • Loading branch information
SPRESENSE committed Jul 4, 2023
1 parent 08878d6 commit 68dd3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/modules/memutils/simple_fifo/src/CMN_SimpleFifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#include <stddef.h>
#include <assert.h>

static inline void __DMB(void) { asm volatile ("dmb"); }
static inline void __DSB(void) { asm volatile ("dsb"); }
static inline void __DMB(void) { __asm__ volatile ("dmb"); }
static inline void __DSB(void) { __asm__ volatile ("dsb"); }

#include "memutils/simple_fifo/CMN_SimpleFifo.h"

Expand Down

0 comments on commit 68dd3cb

Please sign in to comment.