Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:22:48

0001 /**
0002  * @file
0003  *
0004  * @ingroup arm_beagle
0005  *
0006  * @brief BeagleBone Black BSP definitions.
0007  */
0008 
0009 /**
0010  * Copyright (c) 2015 Ketul Shah <ketulshah1993 at gmail.com>
0011  *
0012  * The license and distribution terms for this file may be
0013  * found in the file LICENSE in this distribution or at
0014  * http://www.rtems.org/license/LICENSE.
0015  */
0016 
0017 #ifndef LIBBSP_ARM_BEAGLE_BBB_GPIO_H
0018 #define LIBBSP_ARM_BEAGLE_BBB_GPIO_H
0019 
0020 #ifdef __cplusplus
0021 extern "C" {
0022 #endif /* __cplusplus */
0023 
0024 /**
0025  * @brief  BeagleBone Black GPIO functions.
0026  */
0027 #define BBB_DIGITAL_IN  2
0028 #define BBB_DIGITAL_OUT 1
0029 
0030 /**
0031  * @brief  BeagleBone Black GPIO pad configuration.
0032  */
0033 #define BBB_PUDEN (1 << 3)
0034 #define BBB_PUDDIS ~BBB_PUDEN
0035 #define BBB_PU_EN (1 << 4)
0036 #define BBB_PD_EN ~BBB_PU_EN
0037 #define BBB_MUXMODE(X) (X & 0x7)
0038 #define BBB_RXACTIVE (1 << 5)
0039 #define BBB_SLEWCTRL (1 << 6)
0040 
0041 #ifdef __cplusplus
0042 }
0043 #endif /* __cplusplus */
0044 
0045 #endif /* LIBBSP_ARM_BEAGLE_BBB_GPIO_H */