source: rtems/c/src/lib/libbsp/arm/beagle/include/bbb-gpio.h @ 151e53f

5
Last change on this file since 151e53f was 151e53f, checked in by Ketul Shah <ketulshah1993@…>, on 08/18/15 at 14:30:48

Beagle: GPIO support (for BBB)

GPIO Driver Development for BeagleBone? Black based on the generic GPIO API

  • Property mode set to 100644
File size: 854 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup arm_beagle
5 *
6 * @brief BeagleBone Black BSP definitions.
7 */
8
9/**
10 * Copyright (c) 2015 Ketul Shah <ketulshah1993 at gmail.com>
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE.
15 */
16
17#ifndef LIBBSP_ARM_BEAGLE_BBB_GPIO_H
18#define LIBBSP_ARM_BEAGLE_BBB_GPIO_H
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24/**
25 * @brief  BeagleBone Black GPIO functions.
26 */
27#define BBB_DIGITAL_IN  2
28#define BBB_DIGITAL_OUT 1
29
30/**
31 * @brief  BeagleBone Black GPIO pad configuration.
32 */
33#define BBB_PUDEN (1 << 3)
34#define BBB_PUDDIS ~BBB_PUDEN
35#define BBB_PU_EN (1 << 4)
36#define BBB_PD_EN ~BBB_PU_EN
37#define BBB_MUXMODE(X) (X & 0x7)
38
39#ifdef __cplusplus
40}
41#endif /* __cplusplus */
42
43#endif /* LIBBSP_ARM_BEAGLE_BBB_GPIO_H */
Note: See TracBrowser for help on using the repository browser.