RTEMS 6.1-rc6
Loading...
Searching...
No Matches
milkymist_gpio.h
Go to the documentation of this file.
1
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.org/license/LICENSE.
14 *
15 * COPYRIGHT (c) 2010 Sebastien Bourdeauducq
16 */
17
25#ifndef __MILKYMIST_GPIO_H_
26#define __MILKYMIST_GPIO_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32rtems_device_driver gpio_initialize(
35 void *arg
36);
37
38rtems_device_driver gpio_read(
41 void *arg
42);
43
44rtems_device_driver gpio_write(
47 void *arg
48);
49
50#define GPIO_DRIVER_TABLE_ENTRY { gpio_initialize, \
51NULL, NULL, gpio_read, gpio_write, NULL}
52
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* __MILKYMIST_GPIO_H_ */
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85