Skip to content

Commit

Permalink
removed _kill_r() from syscalls (due to provided by precompiled gnu t…
Browse files Browse the repository at this point in the history
…oolchain)

added kill_r() to syscalls (due to required by newlib)
unblacklisted board from example Makefile
added CXX flags to board Makefile
  • Loading branch information
BytesGalore authored and BytesGalore committed Nov 11, 2014
1 parent 964d778 commit fb74dd4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
5 changes: 5 additions & 0 deletions boards/stm32f0discovery/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export PORT
# define tools used for building the project
export PREFIX = arm-none-eabi-
export CC = $(PREFIX)gcc
export CXX = $(PREFIX)g++
export AR = $(PREFIX)ar
export AS = $(PREFIX)as
export LINK = $(PREFIX)gcc
Expand All @@ -41,6 +42,10 @@ export FFLAGS = write bin/$(BOARD)/$(APPLICATION).hex 0x08000000
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf bin/$(BOARD)/$(APPLICATION).elf
export TERMFLAGS += -p "$(PORT)"

# unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++
export CXXUWFLAGS +=
export CXXEXFLAGS +=

# use the nano-specs of the NewLib when available
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
export LINKFLAGS += -specs=nano.specs -lc -lnosys
Expand Down
17 changes: 2 additions & 15 deletions cpu/stm32f0/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,21 +147,6 @@ int _getpid(void)
return sched_active_pid;
}

/**
* @brief Send a signal to a given thread
*
* @param r TODO
* @param pid TODO
* @param sig TODO
*
* @return TODO
*/
int _kill_r(struct _reent *r, int pid, int sig)
{
r->_errno = ESRCH; /* not implemented yet */
return -1;
}

/**
* @brief Open a file
*
Expand Down Expand Up @@ -324,3 +309,5 @@ int _unlink_r(struct _reent *r, char* path)
r->_errno = ENODEV; /* not implemented yet */
return -1;
}

void _kill(void) {}
2 changes: 1 addition & 1 deletion examples/riot_and_cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ QUIET ?= 1

# Blacklist boards
BOARD_BLACKLIST := arduino-due avsextrem chronos mbed_lpc1768 msb-430h msba2 redbee-econotag \
telosb wsn430-v1_3b wsn430-v1_4 msb-430 pttu udoo qemu-i386 z1 stm32f0discovery \
telosb wsn430-v1_3b wsn430-v1_4 msb-430 pttu udoo qemu-i386 z1 \
stm32f3discovery stm32f4discovery pca10000 pca10005 iot-lab_M3 arduino-mega2560 \
msbiot yunjia-nrf51822 samr21-xpro cc2538dk openmote spark-core airfy-beacon \
f4vi1
Expand Down

0 comments on commit fb74dd4

Please sign in to comment.