HWB.h File Reference

#include "../../Common/Common.h"

Functions

static void HWB_Init (void)
static bool HWB_GetStatus (void) ATTR_WARN_UNUSED_RESULT

Detailed Description

This file is the master dispatch header file for the board-specific HWB driver, for boards containing a physical pushbutton connected to the AVR's HWB IO pin.

User code should include this file, which will in turn include the correct HWB driver header file for the currently selected board.

If the BOARD value is set to BOARD_USER, this will include the /Board/HWB.h file in the user project directory.


Function Documentation

static bool HWB_GetStatus ( void   )  [inline, static]

Returns the current position of the HWB button on the board.

Returns:
Boolean true if the button is currently pressed, false otherwise

static void HWB_Init ( void   )  [inline, static]

Initializes the HWB driver, so that the current button position can be read. This sets the appropriate I/O pin to an input with pull-up enabled.

This must be called before any HWB functions are used.


Generated on Mon Feb 9 20:18:59 2009 for LUFA Library by  doxygen 1.5.7.1