Contiki 3.x
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
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****/
halGetButtonStatus
uint8_t halGetButtonStatus(HalBoardButton button)
Get button status.
Definition:
button.c:25
halInitButton
void halInitButton(void)
Init buttons.
Definition:
button.c:13
Generated on Sun Nov 30 2014 09:58:58 for Contiki 3.x by
1.8.5