Improved support for the IAR compiler.
io and signal have been moved into contiki include file.
This commit is contained in:
parent
f67fb672eb
commit
c2e07c9798
13 changed files with 17 additions and 144 deletions
|
@ -32,13 +32,8 @@
|
|||
*/
|
||||
|
||||
#include "contiki-conf.h"
|
||||
#ifdef __IAR_SYSTEMS_ICC__
|
||||
#include <msp430.h>
|
||||
#else
|
||||
#include <io.h>
|
||||
#include <signal.h>
|
||||
#endif
|
||||
#include "dev/watchdog.h"
|
||||
#include "isr_compat.h"
|
||||
|
||||
static int counter = 0;
|
||||
|
||||
|
@ -76,13 +71,7 @@ printstring(char *s)
|
|||
#endif /* CONTIKI_TARGET_SKY */
|
||||
#endif /* PRINT_STACK_ON_REBOOT */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#ifdef __IAR_SYSTEMS_ICC__
|
||||
#pragma vector=WDT_VECTOR
|
||||
__interrupt void
|
||||
#else
|
||||
interrupt(WDT_VECTOR)
|
||||
#endif
|
||||
watchdog_interrupt(void)
|
||||
ISR(WDT, watchdog_interrupt)
|
||||
{
|
||||
#ifdef CONTIKI_TARGET_SKY
|
||||
#if PRINT_STACK_ON_REBOOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue