osd-contiki/cpu/stm32w108/hal/micro/button.h

29 lines
652 B
C
Raw Normal View History

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