pinmux.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright (c) 2021-2023 HPMicro
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. */
  7. #ifndef HPM_PINMUX_H
  8. #define HPM_PINMUX_H
  9. #include "hpm_soc.h"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. void init_uart_pins(UART_Type *ptr);
  14. void init_uart_pin_as_gpio(UART_Type *ptr);
  15. void init_lcd_pins(LCDC_Type *ptr);
  16. void init_i2c_pins(I2C_Type *ptr);
  17. void init_cap_pins(void);
  18. void init_sdram_pins(void);
  19. void init_sram_pins(void);
  20. void init_gpio_pins(void);
  21. void init_spi_pins(SPI_Type *ptr);
  22. void init_spi_pins_with_gpio_as_cs(SPI_Type *ptr);
  23. void init_pins(void);
  24. void init_gptmr_pins(GPTMR_Type *ptr);
  25. void init_hall_trgm_pins(void);
  26. void init_qei_trgm_pins(void);
  27. void init_i2s_pins(I2S_Type *ptr);
  28. void init_dao_pins(void);
  29. void init_pdm_pins(void);
  30. void init_vad_pins(void);
  31. void init_cam_pins(CAM_Type *ptr);
  32. void init_fpga_power_pins(void);
  33. void init_butn_pins(void);
  34. void init_acmp_pins(void);
  35. void init_enet_pins(ENET_Type *ptr);
  36. void init_pwm_pins(PWM_Type *ptr);
  37. void init_adc_pins(void);
  38. void init_usb_pins(USB_Type *ptr);
  39. void init_can_pins(CAN_Type *ptr);
  40. void init_sdxc_cmd_pin(SDXC_Type *ptr, bool open_drain, bool is_1v8);
  41. void init_sdxc_cd_pin(SDXC_Type *ptr, bool as_gpio);
  42. void init_sdxc_clk_data_pins(SDXC_Type *ptr, uint32_t width, bool is_1v8);
  43. void init_sdxc_vsel_pin(SDXC_Type *ptr, bool as_gpio);
  44. void init_adc12_pins(void);
  45. void init_adc16_pins(void);
  46. void init_adc_bldc_pins(void);
  47. void init_i2c_pins_as_gpio(I2C_Type *ptr);
  48. void init_beep_pwm_pins(void);
  49. void init_led_pins_as_pwm(void);
  50. void init_led_pins_as_gpio(void);
  51. void init_trgmux_pins(uint32_t pin);
  52. void init_enet_pps_pins(void);
  53. void init_tamper_pins(void);
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif /* HPM_PINMUX_H */