Skip to content

Commit

Permalink
samr21-xpro: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseichinger committed Sep 24, 2014
1 parent 102658d commit ab55135
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 15 deletions.
2 changes: 0 additions & 2 deletions boards/samr21-xpro/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# tell the Makefile.base which module to build
MODULE = $(BOARD)_base

# add a list of board specific subdirectories that should also be built
DIRS =

include $(RIOTBASE)/Makefile.base
2 changes: 1 addition & 1 deletion boards/samr21-xpro/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
export DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh

# define build specific options
export CPU_USAGE = -mcpu=cortex-m0
export CPU_USAGE = -mcpu=cortex-m0plus
FPU_USAGE =
export CFLAGS += -ggdb -g3 -std=gnu99 -O0 -Wall -Wstrict-prototypes $(CPU_USAGE) $(FPU_USAGE) -mlittle-endian -mthumb -mthumb-interwork -nostartfiles
export CFLAGS += -ffunction-sections -fdata-sections -fno-builtin
Expand Down
3 changes: 0 additions & 3 deletions boards/samr21-xpro/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ void board_init(void)
/* initialize the CPU */
cpu_init();

/* initialize the GCLK */
clk_init();

/* initialize the boards LEDs */
led_init();
}
Expand Down
6 changes: 3 additions & 3 deletions boards/samr21-xpro/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
#define LED_GREEN_ON /* not available */
#define LED_GREEN_OFF /* not available */
#define LED_GREEN_TOGGLE /* not available */
#define LED_ORANGE_ON /* not available */
#define LED_ORANGE_OFF /* not available */
#define LED_ORANGE_TOGGLE /* not available */
#define LED_ORANGE_ON /* not available */
#define LED_ORANGE_OFF /* not available */
#define LED_ORANGE_TOGGLE /* not available */
#define LED_RED_ON LED_ON
#define LED_RED_OFF LED_OFF
#define LED_RED_TOGGLE LED_TOGGLE
Expand Down
3 changes: 1 addition & 2 deletions cpu/samd21/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

# this CPU implementation is using the new core/CPU interface
export CFLAGS += -DCOREIF_NG=1

# this CPU implementation doesn't use CMSIS initialisation
# this CPU implementation doesn't use CMSIS initialisation
export CFLAGS += -DDONT_USE_CMSIS_INIT

# tell the build system that the CPU depends on the Cortex-M common files
Expand Down
3 changes: 3 additions & 0 deletions cpu/samd21/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ void cpu_init(void)

/* set pendSV interrupt to lowest possible priority */
NVIC_SetPriority(PendSV_IRQn, 0xff);

/* Initialise clock sources and generic clocks */
clk_init();
}

/**
Expand Down
1 change: 0 additions & 1 deletion cpu/samd21/hwtimer_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ unsigned long hwtimer_arch_now(void)
void irq_handler(int channel)
{
timeout_handler((short)(channel));
thread_yield();
}
6 changes: 3 additions & 3 deletions cpu/samd21/include/cpu-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
* TODO: measure and adjust for the cortex-m0
* @{
*/
#define KERNEL_CONF_STACKSIZE_PRINTF (2500)
#define KERNEL_CONF_STACKSIZE_PRINTF (512)

#ifndef KERNEL_CONF_STACKSIZE_DEFAULT
#define KERNEL_CONF_STACKSIZE_DEFAULT (2500)
#define KERNEL_CONF_STACKSIZE_DEFAULT (512)
#endif

#define KERNEL_CONF_STACKSIZE_IDLE (512)
#define KERNEL_CONF_STACKSIZE_IDLE (256)
/** @} */

/**
Expand Down

0 comments on commit ab55135

Please sign in to comment.