stm32_periph.h 731 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * (C) Copyright 2016
  3. * Vikas Manocha, ST Micoelectronics, vikas.manocha@st.com.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __ASM_ARM_ARCH_PERIPH_H
  8. #define __ASM_ARM_ARCH_PERIPH_H
  9. /*
  10. * Peripherals required for pinmux configuration. List will
  11. * grow with support for more devices getting added.
  12. * Numbering based on interrupt table.
  13. *
  14. */
  15. enum periph_id {
  16. UART1_GPIOA_9_10 = 0,
  17. UART2_GPIOD_5_6,
  18. };
  19. enum periph_clock {
  20. USART1_CLOCK_CFG = 0,
  21. USART2_CLOCK_CFG,
  22. GPIO_A_CLOCK_CFG,
  23. GPIO_B_CLOCK_CFG,
  24. GPIO_C_CLOCK_CFG,
  25. GPIO_D_CLOCK_CFG,
  26. GPIO_E_CLOCK_CFG,
  27. GPIO_F_CLOCK_CFG,
  28. GPIO_G_CLOCK_CFG,
  29. GPIO_H_CLOCK_CFG,
  30. GPIO_I_CLOCK_CFG,
  31. GPIO_J_CLOCK_CFG,
  32. GPIO_K_CLOCK_CFG,
  33. };
  34. #endif /* __ASM_ARM_ARCH_PERIPH_H */