Browse Source

sem: rename to sema

To prevent name colisions with POSIX semaphores
cc430
Martine Lenders 7 years ago committed by Martine Lenders
parent
commit
ee4f79482a
  1. 4
      Makefile.dep
  2. 4
      sys/Makefile
  3. 0
      sys/include/sema.h
  4. 2
      sys/posix/include/semaphore.h
  5. 2
      sys/posix/semaphore/posix_semaphore.c
  6. 0
      sys/sema/Makefile
  7. 2
      sys/sema/sema.c

4
Makefile.dep

@ -283,11 +283,11 @@ ifneq (,$(filter posix,$(USEMODULE)))
endif
ifneq (,$(filter posix_semaphore,$(USEMODULE)))
USEMODULE += sem
USEMODULE += sema
USEMODULE += vtimer
endif
ifneq (,$(filter sem,$(USEMODULE)))
ifneq (,$(filter sema,$(USEMODULE)))
USEMODULE += vtimer
endif

4
sys/Makefile

@ -71,8 +71,8 @@ endif
ifneq (,$(filter netopt,$(USEMODULE)))
DIRS += net/crosslayer/netopt
endif
ifneq (,$(filter sem,$(USEMODULE)))
DIRS += sem
ifneq (,$(filter sema,$(USEMODULE)))
DIRS += sema
endif
DIRS += $(dir $(wildcard $(addsuffix /Makefile, ${USEMODULE})))

0
sys/include/sem.h → sys/include/sema.h

2
sys/posix/include/semaphore.h

@ -26,7 +26,7 @@
#include <errno.h>
#include <time.h>
#include "sem.h"
#include "sema.h"
#ifdef __cplusplus
extern "C" {

2
sys/posix/semaphore/posix_semaphore.c

@ -21,7 +21,7 @@
#include "irq.h"
#include "sched.h"
#include "sem.h"
#include "sema.h"
#include "tcb.h"
#include "timex.h"
#include "thread.h"

0
sys/sem/Makefile → sys/sema/Makefile

2
sys/sem/sem.c → sys/sema/sema.c

@ -24,7 +24,7 @@
#include "msg.h"
#include "vtimer.h"
#include "sem.h"
#include "sema.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
Loading…
Cancel
Save