1 | /** |
---|
2 | * @file |
---|
3 | * @ingroup lm32_milkymist_gpio lm32_milkymist_shared |
---|
4 | * @brief Milkymist GPIO driver |
---|
5 | */ |
---|
6 | |
---|
7 | /* milkymist_gpio.h |
---|
8 | * |
---|
9 | * Milkymist GPIO 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.com/license/LICENSE. |
---|
14 | * |
---|
15 | * COPYRIGHT (c) 2010 Sebastien Bourdeauducq |
---|
16 | */ |
---|
17 | |
---|
18 | /** |
---|
19 | * @defgroup lm32_milkymist_gpio Milkymist GPIO |
---|
20 | * @ingroup lm32_milkymist_shared |
---|
21 | * @brief Milkymist GPIO driver |
---|
22 | * @{ |
---|
23 | */ |
---|
24 | |
---|
25 | #ifndef __MILKYMIST_GPIO_H_ |
---|
26 | #define __MILKYMIST_GPIO_H_ |
---|
27 | |
---|
28 | #ifdef __cplusplus |
---|
29 | extern "C" { |
---|
30 | #endif |
---|
31 | |
---|
32 | rtems_device_driver gpio_initialize( |
---|
33 | rtems_device_major_number major, |
---|
34 | rtems_device_minor_number minor, |
---|
35 | void *arg |
---|
36 | ); |
---|
37 | |
---|
38 | rtems_device_driver gpio_read( |
---|
39 | rtems_device_major_number major, |
---|
40 | rtems_device_minor_number minor, |
---|
41 | void *arg |
---|
42 | ); |
---|
43 | |
---|
44 | rtems_device_driver gpio_write( |
---|
45 | rtems_device_major_number major, |
---|
46 | rtems_device_minor_number minor, |
---|
47 | void *arg |
---|
48 | ); |
---|
49 | |
---|
50 | #define GPIO_DRIVER_TABLE_ENTRY { gpio_initialize, \ |
---|
51 | NULL, NULL, gpio_read, gpio_write, NULL} |
---|
52 | |
---|
53 | /** @} */ |
---|
54 | |
---|
55 | #ifdef __cplusplus |
---|
56 | } |
---|
57 | #endif |
---|
58 | |
---|
59 | #endif /* __MILKYMIST_GPIO_H_ */ |
---|