Skip to content

Commit

Permalink
cpu/atmega*: remove unnecessary code (already factored out)
Browse files Browse the repository at this point in the history
cpu.c and startup.c were redundant in most platforms, except for
atmega256rfr2. The common code is now in cpu/atmega_common/cpu.c
and cpu/atmega_common/startup.c. cpu_conf.h is also removed as
it's now in cpu/atmega_common/include thus shared by all atmega
based platforms.
  • Loading branch information
kYc0o committed Aug 30, 2018
1 parent a6596b4 commit d981050
Show file tree
Hide file tree
Showing 20 changed files with 9 additions and 857 deletions.
9 changes: 1 addition & 8 deletions cpu/atmega1281/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# tell the build system that the CPU depends on the atmega common files
USEMODULE += atmega_common

# define path to atmega common module, which is needed for this CPU
export ATMEGA_COMMON = $(RIOTCPU)/atmega_common/

# explicitly tell the linker to link the syscalls and startup code.
# Without this the interrupt vectors will not be linked correctly!
export UNDEF += $(BINDIR)/cpu/startup.o

# CPU depends on the atmega common module, so include it
include $(ATMEGA_COMMON)Makefile.include
include $(RIOTCPU)/atmega_common/Makefile.include
30 changes: 0 additions & 30 deletions cpu/atmega1281/cpu.c

This file was deleted.

51 changes: 0 additions & 51 deletions cpu/atmega1281/include/cpu_conf.h

This file was deleted.

72 changes: 0 additions & 72 deletions cpu/atmega1281/startup.c

This file was deleted.

6 changes: 2 additions & 4 deletions cpu/atmega1284p/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# tell the build system that the CPU depends on the atmega common files
USEMODULE += atmega_common

# define path to atmega common module, which is needed for this CPU
export ATMEGA_COMMON = $(RIOTCPU)/atmega_common/

# CPU depends on the atmega common module, so include it
include $(ATMEGA_COMMON)Makefile.include
include $(RIOTCPU)/atmega_common/Makefile.include

32 changes: 0 additions & 32 deletions cpu/atmega1284p/cpu.c

This file was deleted.

74 changes: 0 additions & 74 deletions cpu/atmega1284p/startup.c

This file was deleted.

9 changes: 1 addition & 8 deletions cpu/atmega2560/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# tell the build system that the CPU depends on the atmega common files
USEMODULE += atmega_common

# define path to atmega common module, which is needed for this CPU
export ATMEGA_COMMON = $(RIOTCPU)/atmega_common/

# explicitly tell the linker to link the syscalls and startup code.
# Without this the interrupt vectors will not be linked correctly!
export UNDEF += $(BINDIR)/cpu/startup.o

# CPU depends on the atmega common module, so include it
include $(ATMEGA_COMMON)Makefile.include
include $(RIOTCPU)/atmega_common/Makefile.include
30 changes: 0 additions & 30 deletions cpu/atmega2560/cpu.c

This file was deleted.

50 changes: 0 additions & 50 deletions cpu/atmega2560/include/cpu_conf.h

This file was deleted.

Loading

0 comments on commit d981050

Please sign in to comment.