gpio_exp.h 646 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2019-2021, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef ARM_TRUSTED_FIRMWARE_EXPORT_DRIVERS_GPIO_EXP_H
  7. #define ARM_TRUSTED_FIRMWARE_EXPORT_DRIVERS_GPIO_EXP_H
  8. /* EXPORT HEADER -- See include/export/README for details! -- EXPORT HEADER */
  9. #define ARM_TF_GPIO_DIR_OUT 0
  10. #define ARM_TF_GPIO_DIR_IN 1
  11. #define ARM_TF_GPIO_LEVEL_LOW 0
  12. #define ARM_TF_GPIO_LEVEL_HIGH 1
  13. #define ARM_TF_GPIO_PULL_NONE 0
  14. #define ARM_TF_GPIO_PULL_UP 1
  15. #define ARM_TF_GPIO_PULL_DOWN 2
  16. #define ARM_TF_GPIO_PULL_REPEATER 3
  17. #endif /* ARM_TRUSTED_FIRMWARE_EXPORT_DRIVERS_GPIO_EXP_H */