source: rtems/c/src/lib/libbsp/lm32/shared/milkymist_buttons/milkymist_buttons.h @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 * @ingroup lm32_milkymist_buttons lm32_milkymist_shared
4 * @brief Milkymist buttons driver
5 */
6
7/*  milkymist_buttons.h
8 *
9 *  Milkymist buttons driver for RTEMS
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.org/license/LICENSE.
14 *
15 *  COPYRIGHT (c) 2011 Sebastien Bourdeauducq
16 */
17
18/**
19 * @defgroup lm32_milkymist_buttons Milkymist buttons
20 * @ingroup lm32_milkymist_shared
21 * @brief Milkymist buttons driver
22 * @{
23 */
24
25#ifndef __MILKYMIST_BUTTONS_H_
26#define __MILKYMIST_BUTTONS_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32rtems_device_driver buttons_initialize(
33  rtems_device_major_number major,
34  rtems_device_minor_number minor,
35  void *arg
36);
37
38rtems_device_driver buttons_open(
39  rtems_device_major_number major,
40  rtems_device_minor_number minor,
41  void *arg
42);
43
44rtems_device_driver buttons_read(
45  rtems_device_major_number major,
46  rtems_device_minor_number minor,
47  void *arg
48);
49
50#define BUTTONS_DRIVER_TABLE_ENTRY { buttons_initialize, \
51buttons_open, NULL, buttons_read, NULL, NULL}
52
53/** @} */
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* __MILKYMIST_BUTTONS_H_ */
Note: See TracBrowser for help on using the repository browser.