button.h

Go to the documentation of this file.
00001 /** @file /hal/micro/button.h
00002  * @brief Header for button driver
00003  *
00004  * <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved.        -->
00005  */
00006 
00007 #ifndef _BUTTON_H_
00008 #define _BUTTON_H_
00009 
00010 /* button status */
00011 #define BUTTON_PRESSED   0
00012 #define BUTTON_RELEASED  1
00013 #define BUTTON_UNKNOWN   3
00014 
00015 
00016 typedef int8u HalBoardButton;
00017 
00018 /* Functions -----------------------------------------------------------------*/
00019 
00020 /** @brief Init buttons */
00021 void halInitButton(void);
00022 
00023 /** @brief Get button status */
00024 int8u halGetButtonStatus(HalBoardButton button);
00025 
00026 #endif /* _BUTTON_H_ */
00027 
00028 /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/

Generated on Mon Apr 11 14:23:39 2011 for Contiki 2.5 by  doxygen 1.6.1