Browse Source

core: sys: move ringbuffer to core

dev/timer
Kaspar Schleiser 8 years ago
parent
commit
9ce0b676b4
  1. 5
      Makefile.dep
  2. 2
      core/include/ringbuffer.h
  3. 2
      core/ringbuffer.c
  4. 3
      cpu/atmega2560/Makefile.include
  5. 3
      cpu/cc2538/Makefile.include
  6. 3
      cpu/nrf51822/Makefile.include
  7. 3
      cpu/sam3x8e/Makefile.include
  8. 3
      cpu/samd21/Makefile.include
  9. 3
      cpu/stm32f0/Makefile.include
  10. 3
      cpu/stm32f1/Makefile.include
  11. 3
      cpu/stm32f3/Makefile.include
  12. 3
      cpu/stm32f4/Makefile.include
  13. 1
      tests/periph_uart_int/Makefile
  14. 1
      tests/unittests/tests-lib/Makefile.include

5
Makefile.dep

@ -48,7 +48,6 @@ ifneq (,$(filter sixlowpan,$(USEMODULE)))
endif
ifneq (,$(filter uart0,$(USEMODULE)))
USEMODULE += lib
USEMODULE += posix
endif
@ -102,10 +101,6 @@ ifneq (,$(filter rgbled,$(USEMODULE)))
USEMODULE += color
endif
ifneq (,$(filter pipe,$(USEMODULE)))
USEMODULE += lib
endif
ifneq (,$(filter libfixmath-unittests,$(USEMODULE)))
USEPKG += libfixmath
endif

2
sys/include/ringbuffer.h → core/include/ringbuffer.h

@ -8,7 +8,7 @@
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*
* @ingroup sys_lib
* @ingroup core_util
* @{
* @file ringbuffer.h
* @author Kaspar Schleiser <kaspar@schleiser.de>

2
sys/lib/ringbuffer.c → core/ringbuffer.c

@ -8,7 +8,7 @@
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*
* @ingroup sys_lib
* @ingroup core_util
* @{
* @file ringbuffer.c
* @author Kaspar Schleiser <kaspar@schleiser.de>

3
cpu/atmega2560/Makefile.include

@ -21,8 +21,5 @@ export UNDEF += $(BINDIR)cpu/startup.o
# export the peripheral drivers to be linked into the final binary
export USEMODULE += periph
# the uart implementation uses ringbuffer and therefore needs lib
export USEMODULE += lib
# CPU depends on the atmega common module, so include it
include $(ATMEGA_COMMON)Makefile.include

3
cpu/cc2538/Makefile.include

@ -25,9 +25,6 @@ export UNDEF += $(BINDIR)cpu/startup.o
# Export the peripheral drivers to be linked into the final binary:
export USEMODULE += periph
# this CPU implementation makes use of the ringbuffer, so include the lib module
export USEMODULE += lib
# CPU depends on the cortex-m common module, so include it:
include $(CORTEX_COMMON)Makefile.include

3
cpu/nrf51822/Makefile.include

@ -26,8 +26,5 @@ export UNDEF += $(BINDIR)cpu/startup.o
# export the peripheral drivers to be linked into the final binary
export USEMODULE += periph
# the syscalls implementation makes use of the ringbuffer, so include the lib module
export USEMODULE += lib
# CPU depends on the cortex-m common module, so include it
include $(CORTEX_COMMON)Makefile.include

3
cpu/sam3x8e/Makefile.include

@ -4,9 +4,6 @@ export CFLAGS += -DCOREIF_NG=1
# export the peripheral drivers to be linked into the final binary
export USEMODULE += periph
# this CPU implementation makes use of the ringbuffer, so include the lib module
export USEMODULE += lib
# tell the build system that the CPU depends on the Cortex-M common files
export USEMODULE += cortex-m3_common

3
cpu/samd21/Makefile.include

@ -10,9 +10,6 @@ export USEMODULE += cortex-m0_common
# define path to cortex-m common module, which is needed for this CPU
export CORTEX_COMMON = $(RIOTCPU)/cortex-m0_common/
# this CPU implementation makes use of the ringbuffer, so include the lib module
export USEMODULE += lib
# define the linker script to use for this CPU
export LINKERSCRIPT ?= $(RIOTCPU)/$(CPU)/samd21_linkerscript.ld

3
cpu/stm32f0/Makefile.include

@ -7,9 +7,6 @@ export USEMODULE += cortex-m0_common
# define path to cortex-m common module, which is needed for this CPU
export CORTEX_COMMON = $(RIOTCPU)/cortex-m0_common/
# this CPU implementation makes use of the ringbuffer, so include the lib module
export USEMODULE += lib
# define the linker script to use for this CPU. The CPU_MODEL variable is defined in the
# board's Makefile.include. This enables multiple STMF0 controllers with different memory to
# use the same code-base.

3
cpu/stm32f1/Makefile.include

@ -4,9 +4,6 @@ export CFLAGS += -DCOREIF_NG=1
# tell the build system that the CPU depends on the Cortex-M common files
export USEMODULE += cortex-m3_common
# this CPU implementation makes use of the ringbuffer, so include the lib module
export USEMODULE += lib
# define path to cortex-m common module, which is needed for this CPU
export CORTEXM_COMMON = $(RIOTCPU)/cortex-m3_common/

3
cpu/stm32f3/Makefile.include

@ -4,9 +4,6 @@ export CFLAGS += -DCOREIF_NG=1
# export the peripheral drivers to be linked into the final binary
export USEMODULE += periph
# this CPU implementation makes use of the ringbuffer, so include the lib module
export USEMODULE += lib
# tell the build system that the CPU depends on the Cortex-M common files
export USEMODULE += cortex-m4_common

3
cpu/stm32f4/Makefile.include

@ -4,9 +4,6 @@ export CFLAGS += -DCOREIF_NG=1
# export the peripheral drivers to be linked into the final binary
export USEMODULE += periph
# this CPU implementation makes use of the ringbuffer, so include the lib module
export USEMODULE += lib
# tell the build system that the CPU depends on the Cortex-M common files
export USEMODULE += cortex-m4_common

1
tests/periph_uart_int/Makefile

@ -5,7 +5,6 @@ BOARD_BLACKLIST := chronos mbed_lpc1768 msb-430 msb-430h native qemu-i386 redbee
wsn430-v1_3b wsn430-v1_4 z1
# all listed boards: no periph_conf.h defined,
USEMODULE += lib
USEMODULE += vtimer
include $(RIOTBASE)/Makefile.include

1
tests/unittests/tests-lib/Makefile.include

@ -1 +0,0 @@
USEMODULE += lib
Loading…
Cancel
Save