only include memcpy/set workaround when needed
This commit is contained in:
parent
8f7e96b06f
commit
ebfa6c5ef1
1 changed files with 6 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: msp430.c,v 1.12 2010/03/19 14:50:07 joxe Exp $
|
* @(#)$Id: msp430.c,v 1.13 2010/03/21 10:40:15 nifi Exp $
|
||||||
*/
|
*/
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -38,7 +38,8 @@
|
||||||
#include "dev/watchdog.h"
|
#include "dev/watchdog.h"
|
||||||
#include "net/uip.h"
|
#include "net/uip.h"
|
||||||
|
|
||||||
/* /\*---------------------------------------------------------------------------*\/ */
|
/*---------------------------------------------------------------------------*/
|
||||||
|
#if defined(__MSP430__) && defined(__GNUC__) && MSP430_MEMCPY_WORKAROUND
|
||||||
void *
|
void *
|
||||||
w_memcpy(void *out, const void *in, size_t n)
|
w_memcpy(void *out, const void *in, size_t n)
|
||||||
{
|
{
|
||||||
|
@ -50,7 +51,9 @@ w_memcpy(void *out, const void *in, size_t n)
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
#endif /* __GNUC__ && __MSP430__ && MSP430_MEMCPY_WORKAROUND */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
#if defined(__MSP430__) && defined(__GNUC__) && MSP430_MEMCPY_WORKAROUND
|
||||||
void *
|
void *
|
||||||
w_memset(void *out, int value, size_t n)
|
w_memset(void *out, int value, size_t n)
|
||||||
{
|
{
|
||||||
|
@ -61,6 +64,7 @@ w_memset(void *out, int value, size_t n)
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
#endif /* __GNUC__ && __MSP430__ && MSP430_MEMCPY_WORKAROUND */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
msp430_init_dco(void)
|
msp430_init_dco(void)
|
||||||
|
|
Loading…
Reference in a new issue