3      Copyright (C) Dean Camera, 2013. 
   5   dean [at] fourwalledcubicle [dot] com 
  10   Copyright 2013  Dean Camera (dean [at] fourwalledcubicle [dot] com) 
  12   Permission to use, copy, modify, distribute, and sell this 
  13   software and its documentation for any purpose is hereby granted 
  14   without fee, provided that the above copyright notice appear in 
  15   all copies and that both that the copyright notice and this 
  16   permission notice and warranty disclaimer appear in supporting 
  17   documentation, and that the name of the author not be used in 
  18   advertising or publicity pertaining to distribution of the 
  19   software without specific, written prior permission. 
  21   The author disclaims all warranties with regard to this 
  22   software, including all implied warranties of merchantability 
  23   and fitness.  In no event shall the author be liable for any 
  24   special, indirect or consequential damages or any damages 
  25   whatsoever resulting from loss of use, data or profits, whether 
  26   in an action of contract, negligence or other tortious action, 
  27   arising out of or in connection with the use or performance of 
  32  *  \brief LUFA Custom Board Button Hardware Driver (Template) 
  34  *  This is a stub driver header file, for implementing custom board 
  35  *  layout hardware with compatible LUFA board specific drivers. If 
  36  *  the library is configured to use the BOARD_USER board mode, this 
  37  *  driver file should be completed and copied into the "/Board/" folder 
  38  *  inside the application's folder. 
  40  *  This stub is for the board-specific component of the LUFA Buttons driver, 
  41  *  for the control of physical board-mounted GPIO pushbuttons. 
  44 #ifndef __BUTTONS_USER_H__ 
  45 #define __BUTTONS_USER_H__ 
  48                 // TODO: Add any required includes here 
  50         /* Enable C linkage for C++ Compilers: */ 
  51                 #if defined(__cplusplus) 
  55         /* Preprocessor Checks: */ 
  56                 #if !defined(__INCLUDE_FROM_BUTTONS_H) 
  57                         #error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead. 
  60                 #define BOARD_DUMMY_BUTTONS_IMPLEMENTATION 
  62         /* Public Interface - May be used in end-application: */ 
  64                         /** Button mask for the first button on the board. */ 
  65                         #define BUTTONS_BUTTON1          (1 << 0) 
  67                 /* Inline Functions: */ 
  68                 #if !defined(__DOXYGEN__) 
  69                         static inline void Buttons_Init(void) 
  74                         static inline void Buttons_Disable(void) 
  79                         static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT
; 
  80                         static inline uint8_t Buttons_GetStatus(void) 
  86         /* Disable C linkage for C++ Compilers: */ 
  87                 #if defined(__cplusplus)