#include "../../Common/BoardTypes.h"
Functions | |
static void | HWB_Init (void) |
static bool | HWB_GetStatus (void) ATTR_WARN_UNUSED_RESULT |
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.
static bool HWB_GetStatus | ( | void | ) | [inline, static] |
Returns the current position of the HWB button on the board.
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.