Cross compiler interrupt service routine compatibility definitions for MSP430 based platforms based on isr_compat.h by Steve Underwood.
This commit is contained in:
parent
7eac4393c2
commit
684c3edfa6
31 changed files with 157 additions and 182 deletions
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include "contiki.h"
|
||||
#include "dev/button.h"
|
||||
#include "isr_compat.h"
|
||||
|
||||
#define BUTTON_PORT 2
|
||||
#define BUTTON_PIN 7
|
||||
|
@ -57,8 +58,7 @@ button_init(struct process *proc)
|
|||
P2IE &= ~BV(BUTTON_PIN);
|
||||
}
|
||||
|
||||
interrupt(PORT2_VECTOR)
|
||||
__button_interrupt(void)
|
||||
ISR(PORT2, __button_interrupt)
|
||||
{
|
||||
static struct timer debouncetimer;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue