HWB button management
[STK525USBKEY]

HWB button is connected to PE2 and can also be used as generic push button. More...

Defines

#define Hwb_button_init()   (DDRE &= ~(1<<PINE2), PORTE |= (1<<PINE2))
#define Is_hwb()   ((PINE & (1<<PINE2)) ? FALSE : TRUE)
#define Is_not_hwb()   ((PINE & (1<<PINE2)) ? TRUE : FALSE)
#define Hwb_button_init()   (DDRE &= ~(1<<PINE2), PORTE |= (1<<PINE2))
#define Is_hwb()   ((PINE & (1<<PINE2)) ? FALSE : TRUE)
#define Is_not_hwb()   ((PINE & (1<<PINE2)) ? TRUE : FALSE)

Detailed Description

HWB button is connected to PE2 and can also be used as generic push button.


Define Documentation

 
#define Hwb_button_init (  )     (DDRE &= ~(1<<PINE2), PORTE |= (1<<PINE2))

Definition at line 142 of file stk_525.h.

Referenced by device_template_task_init(), and host_template_task_init().

 
#define Is_hwb (  )     ((PINE & (1<<PINE2)) ? FALSE : TRUE)

Definition at line 143 of file stk_525.h.

Referenced by host_template_task().

 
#define Is_not_hwb (  )     ((PINE & (1<<PINE2)) ? TRUE : FALSE)

Definition at line 144 of file stk_525.h.

 
#define Hwb_button_init (  )     (DDRE &= ~(1<<PINE2), PORTE |= (1<<PINE2))

Definition at line 146 of file usb_key.h.

 
#define Is_hwb (  )     ((PINE & (1<<PINE2)) ? FALSE : TRUE)

Definition at line 147 of file usb_key.h.

 
#define Is_not_hwb (  )     ((PINE & (1<<PINE2)) ? TRUE : FALSE)

Definition at line 148 of file usb_key.h.


Generated on Mon Sep 14 13:24:13 2009 for ATMEL by  doxygen 1.5.3