Contiki 3.x
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 uint8_t HalBoardButton;
17 
18 /* Functions -----------------------------------------------------------------*/
19 
20 /** @brief Init buttons */
21 void halInitButton(void);
22 
23 /** @brief Get button status */
24 uint8_t halGetButtonStatus(HalBoardButton button);
25 
26 #endif /*BUTTON_H_ */
27 
28 /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
uint8_t halGetButtonStatus(HalBoardButton button)
Get button status.
Definition: button.c:25
void halInitButton(void)
Init buttons.
Definition: button.c:13