XXX Interrupts by cc2420 & adxl345 compatible now

Still remains to be seen why i2cmaster.c and adxl345.c need to be added
in the Makefile.common at the very beginnig with the env. var.
PROJECT_SOURCEFILES += i2cmaster.c adxl345.c
This commit is contained in:
Enric M. Calvo 2011-02-27 18:02:12 +01:00
parent 18e1f92f0e
commit a779cb4d0d
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# $Id: Makefile.z1,v 1.5 2011/02/26 enricmcalvo Exp $ # $Id: Makefile.z1,v 1.5 2011/02/26 enricmcalvo Exp $
#PROJECT_SOURCEFILES += i2cmaster.c adxl345.c PROJECT_SOURCEFILES += i2cmaster.c adxl345.c
CFLAGS+=-Os -g CFLAGS+=-Os -g
CLEAN += symbols.c symbols.h CLEAN += symbols.c symbols.h
#CFLAGS += -ffunction-sections #CFLAGS += -ffunction-sections

View file

@ -371,7 +371,7 @@ PROCESS_THREAD(accmeter_process, ev, data) {
/* XXX This interrupt vector is shared with the interrupts from CC2420, so that /* XXX This interrupt vector is shared with the interrupts from CC2420, so that
was moved here but should find a better home. XXX */ was moved here but should find a better home. XXX */
#if 0 #if 1
static struct timer suppressTimer1, suppressTimer2; static struct timer suppressTimer1, suppressTimer2;
interrupt(PORT1_VECTOR) port1_isr (void) { interrupt(PORT1_VECTOR) port1_isr (void) {

View file

@ -47,7 +47,7 @@
#endif #endif
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if 1 #if 0
// this is now handled in the ADXL345 accelerometer code as it uses irq on port1 too. // this is now handled in the ADXL345 accelerometer code as it uses irq on port1 too.
interrupt(CC2420_IRQ_VECTOR) interrupt(CC2420_IRQ_VECTOR)
cc24240_port1_interrupt(void) cc24240_port1_interrupt(void)