mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #2031 from haukepetersen/fix_sam3x_cpp
ACK then ;) and go!
This commit is contained in:
commit
b5435fa707
@ -1 +1,2 @@
|
|||||||
|
FEATURES_PROVIDED += cpp
|
||||||
FEATURES_PROVIDED += periph_uart periph_gpio periph_spi periph_random
|
FEATURES_PROVIDED += periph_uart periph_gpio periph_spi periph_random
|
||||||
|
@ -4,6 +4,7 @@ export CPU = sam3x8e
|
|||||||
# define tools used for building the project
|
# define tools used for building the project
|
||||||
export PREFIX = arm-none-eabi-
|
export PREFIX = arm-none-eabi-
|
||||||
export CC = $(PREFIX)gcc
|
export CC = $(PREFIX)gcc
|
||||||
|
export CXX = $(PREFIX)g++
|
||||||
export AR = $(PREFIX)ar
|
export AR = $(PREFIX)ar
|
||||||
export AS = $(PREFIX)as
|
export AS = $(PREFIX)as
|
||||||
export LINK = $(PREFIX)gcc
|
export LINK = $(PREFIX)gcc
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
FEATURES_PROVIDED += cpp
|
||||||
FEATURES_PROVIDED += periph_uart periph_gpio periph_spi periph_random
|
FEATURES_PROVIDED += periph_uart periph_gpio periph_spi periph_random
|
||||||
|
@ -4,6 +4,7 @@ export CPU = sam3x8e
|
|||||||
# define tools used for building the project
|
# define tools used for building the project
|
||||||
export PREFIX = arm-none-eabi-
|
export PREFIX = arm-none-eabi-
|
||||||
export CC = $(PREFIX)gcc
|
export CC = $(PREFIX)gcc
|
||||||
|
export CXX = $(PREFIX)g++
|
||||||
export AR = $(PREFIX)ar
|
export AR = $(PREFIX)ar
|
||||||
export AS = $(PREFIX)as
|
export AS = $(PREFIX)as
|
||||||
export LINK = $(PREFIX)gcc
|
export LINK = $(PREFIX)gcc
|
||||||
@ -38,6 +39,10 @@ export OFLAGS += -O binary
|
|||||||
export FFLAGS += -R -e -w -v -b bin/$(BOARD)/$(APPLICATION).hex
|
export FFLAGS += -R -e -w -v -b bin/$(BOARD)/$(APPLICATION).hex
|
||||||
export TERMFLAGS += -p "$(PORT)"
|
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
|
# 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)
|
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
|
||||||
export LINKFLAGS += -specs=nano.specs -lc -lnosys
|
export LINKFLAGS += -specs=nano.specs -lc -lnosys
|
||||||
|
@ -156,7 +156,8 @@ pid_t _getpid(void)
|
|||||||
*
|
*
|
||||||
* @return TODO
|
* @return TODO
|
||||||
*/
|
*/
|
||||||
int _kill_r(struct _reent *r, pid_t pid, int sig)
|
__attribute__ ((weak))
|
||||||
|
int _kill_r(struct _reent *r, int pid, int sig)
|
||||||
{
|
{
|
||||||
r->_errno = ESRCH; /* not implemented yet */
|
r->_errno = ESRCH; /* not implemented yet */
|
||||||
return -1;
|
return -1;
|
||||||
@ -323,3 +324,18 @@ int _unlink_r(struct _reent *r, char* path)
|
|||||||
r->_errno = ENODEV; /* not implemented yet */
|
r->_errno = ENODEV; /* not implemented yet */
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Send a signal to a thread
|
||||||
|
*
|
||||||
|
* @param[in] pid the pid to send to
|
||||||
|
* @param[in] sig the signal to send
|
||||||
|
*
|
||||||
|
* @return TODO
|
||||||
|
*/
|
||||||
|
__attribute__ ((weak))
|
||||||
|
int _kill(int pid, int sig)
|
||||||
|
{
|
||||||
|
errno = ESRCH; /* not implemented yet */
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user