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
|
@ -34,6 +34,7 @@
|
|||
#include "lib/sensors.h"
|
||||
#include "dev/irq.h"
|
||||
#include "dev/lpm.h"
|
||||
#include "isr_compat.h"
|
||||
|
||||
#define ADC12MCTL_NO(adcno) ((unsigned char *) ADC12MCTL0_)[adcno]
|
||||
|
||||
|
@ -42,8 +43,7 @@ static int (* port1_irq[8])(void);
|
|||
static unsigned char adcflags;
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
interrupt(PORT1_VECTOR)
|
||||
irq_p1(void)
|
||||
ISR(PORT1, irq_p1)
|
||||
{
|
||||
int i;
|
||||
ENERGEST_ON(ENERGEST_TYPE_IRQ);
|
||||
|
@ -58,8 +58,7 @@ interrupt(PORT1_VECTOR)
|
|||
ENERGEST_OFF(ENERGEST_TYPE_IRQ);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
interrupt (ADC_VECTOR)
|
||||
irq_adc(void)
|
||||
ISR(ADC, irq_adc)
|
||||
{
|
||||
int i;
|
||||
ENERGEST_ON(ENERGEST_TYPE_IRQ);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue