pin_name.h 679 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (C) 2017-2019 Alibaba Group Holding Limited
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-08-20 zx.chen header file for the pin_name
  9. */
  10. #ifndef _PINNAMES_H
  11. #define _PINNAMES_H
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. typedef enum
  16. {
  17. PA0 = 0,
  18. PA1,
  19. PA2,
  20. PA3,
  21. PA4,
  22. PA5,
  23. PA6,
  24. PA7,
  25. PAD_UART0_SIN,
  26. PAD_UART0_SOUT
  27. }
  28. pin_name_e;
  29. typedef enum
  30. {
  31. PORTA = 0,
  32. PORTB = 1,
  33. PORTC = 2,
  34. PORTD = 3,
  35. PORTE = 4,
  36. PORTF = 5,
  37. PORTG = 6,
  38. PORTH = 7
  39. } port_name_e;
  40. typedef enum
  41. {
  42. NONE = 0
  43. } pin_func_e;
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif