2010-10-25 09:03:38 +00:00
|
|
|
/** @file /hal/micro/button.h
|
|
|
|
* @brief Header for button driver
|
|
|
|
*
|
|
|
|
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
|
|
|
|
*/
|
|
|
|
|
2013-11-24 15:57:08 +00:00
|
|
|
#ifndef BUTTON_H_
|
|
|
|
#define BUTTON_H_
|
2010-10-25 09:03:38 +00:00
|
|
|
|
|
|
|
/* button status */
|
|
|
|
#define BUTTON_PRESSED 0
|
|
|
|
#define BUTTON_RELEASED 1
|
|
|
|
#define BUTTON_UNKNOWN 3
|
|
|
|
|
|
|
|
|
2013-03-15 15:14:09 +00:00
|
|
|
typedef uint8_t HalBoardButton;
|
2010-10-25 09:03:38 +00:00
|
|
|
|
|
|
|
/* Functions -----------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/** @brief Init buttons */
|
|
|
|
void halInitButton(void);
|
|
|
|
|
|
|
|
/** @brief Get button status */
|
2013-03-15 15:14:09 +00:00
|
|
|
uint8_t halGetButtonStatus(HalBoardButton button);
|
2010-10-25 09:03:38 +00:00
|
|
|
|
2013-11-24 15:57:08 +00:00
|
|
|
#endif /*BUTTON_H_ */
|
2010-10-25 09:03:38 +00:00
|
|
|
|
|
|
|
/******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
|