Contiki 2.5
button.h
Go to the documentation of this file.
1 /** @file /hal/micro/button.h
2  * @brief Header for button driver
3  *
4  * <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
5  */
6 
7 #ifndef _BUTTON_H_
8 #define _BUTTON_H_
9 
10 /* button status */
11 #define BUTTON_PRESSED 0
12 #define BUTTON_RELEASED 1
13 #define BUTTON_UNKNOWN 3
14 
15 
16 typedef int8u HalBoardButton;
17 
18 /* Functions -----------------------------------------------------------------*/
19 
20 /** @brief Init buttons */
21 void halInitButton(void);
22 
23 /** @brief Get button status */
24 int8u halGetButtonStatus(HalBoardButton button);
25 
26 #endif /* _BUTTON_H_ */
27 
28 /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/