include: nuttx: Introduce spinlock_t for #ifndef CONFIG_SPINLOCK

Summary:
- This commit introduces spinlock_t for #ifndef CONFIG_SPINLOCK
  which is useful for the non-SMP case because it does not consume
  memory

Impact:
- None:

Testing:
- N/A

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2021-02-09 13:07:03 +09:00 committed by Xiang Xiao
parent dcec04f5b2
commit 611dbb6d22
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@
#include <sys/types.h>
#include <stdint.h>
#ifdef CONFIG_SPINLOCK
#ifndef CONFIG_SPINLOCK
typedef struct
{
} spinlock_t;
#else
/* The architecture specific spinlock.h header file must also provide the
* following: