RTEMS 7.0-rc1
Loading...
Searching...
No Matches
bbb-gpio.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
19#ifndef LIBBSP_ARM_BEAGLE_BBB_GPIO_H
20#define LIBBSP_ARM_BEAGLE_BBB_GPIO_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif /* __cplusplus */
25
29#define BBB_DIGITAL_IN 2
30#define BBB_DIGITAL_OUT 1
31
35#define BBB_PUDEN (1 << 3)
36#define BBB_PUDDIS ~BBB_PUDEN
37#define BBB_PU_EN (1 << 4)
38#define BBB_PD_EN ~BBB_PU_EN
39#define BBB_MUXMODE(X) (X & 0x7)
40#define BBB_RXACTIVE (1 << 5)
41#define BBB_SLEWCTRL (1 << 6)
42
43#ifdef __cplusplus
44}
45#endif /* __cplusplus */
46
47#endif /* LIBBSP_ARM_BEAGLE_BBB_GPIO_H */