diff --git a/arch/avr/src/Makefile b/arch/avr/src/Makefile index 7034ef8f40d..b72a6c8a8df 100644 --- a/arch/avr/src/Makefile +++ b/arch/avr/src/Makefile @@ -40,8 +40,7 @@ ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src ifeq ($(CONFIG_ARCH_AVR32),y) ARCH_SUBDIR = avr32 -endif -ifeq ($(CONFIG_ARCH_AVR),y) +else ifeq ($(CONFIG_ARCH_AVR),y) ARCH_SUBDIR = avr endif diff --git a/arch/avr/src/avr32/avr32_internal.h b/arch/avr/src/avr32/avr32_internal.h index 56065edcebd..332b0918e63 100644 --- a/arch/avr/src/avr32/avr32_internal.h +++ b/arch/avr/src/avr32/avr32_internal.h @@ -69,7 +69,7 @@ * structure. If is non-NULL only during interrupt processing. */ -extern volatile uint32_ *current_regs; +extern volatile uint32_t *current_regs; /* This is the beginning of heap as provided from up_head.S. This is the first * address in DRAM after the loaded program+bss+idle stack. The end of the diff --git a/arch/avr/src/avr32/up_copystate.c b/arch/avr/src/avr32/up_copystate.c index e3e4da0544b..67640f8ccec 100644 --- a/arch/avr/src/avr32/up_copystate.c +++ b/arch/avr/src/avr32/up_copystate.c @@ -41,6 +41,8 @@ #include +#include + #include "up_internal.h" /****************************************************************************