Contiki 2.5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
cpu
stm32w108
hal
micro
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****/
Generated on Fri Aug 30 2013 12:34:09 for Contiki 2.5 by
1.8.3.1