Contiki 2.5
Macros
button-sensor.c File Reference

           Button sensor.
More...

#include "dev/button-sensor.h"
#include "hal/micro/micro-common.h"
#include "hal/micro/cortexm3/micro-common.h"

Go to the source code of this file.

Macros

#define BUTTON_S1   PORTA_PIN(7)
 Port and pin for BUTTON0.
 
#define BUTTON_S1_SEL()   do { GPIO_IRQCSEL = BUTTON_S1; } while(0)
 Point the proper IRQ at the desired pin for BUTTON0.
 
#define BUTTON_S1_ISR   halIrqCIsr
 The interrupt service routine for BUTTON_S1.
 
#define BUTTON_S1_INTCFG   GPIO_INTCFGC
 The interrupt configuration register for BUTTON_S1.
 
#define BUTTON_S1_INT_EN_BIT   INT_IRQC
 The interrupt bit for BUTTON_S1.
 
#define BUTTON_S1_FLAG_BIT   INT_IRQCFLAG
 The interrupt bit for BUTTON_S1.
 
#define BUTTON_S1_MISS_BIT   INT_MISSIRQC
 The missed interrupt bit for BUTTON_S1.
 

Detailed Description

           Button sensor.
Author
Salvatore Pitrulli salvo.nosp@m.pitr.nosp@m.u@use.nosp@m.rs.s.nosp@m.ource.nosp@m.forg.nosp@m.e.net

Definition in file button-sensor.c.