1 /*
2  * Copyright (c) 2022 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef HPM_PINMUX_H
9 #define HPM_PINMUX_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 void init_xtal_pins(void);
15 void init_py_pins_as_pgpio(void);
16 void init_uart_pins(UART_Type *ptr);
17 void init_uart_pin_as_gpio(UART_Type *ptr);
18 void init_i2c_pins(I2C_Type *ptr);
19 void init_gpio_pins(void);
20 void init_spi_pins(SPI_Type *ptr);
21 void init_spi_pins_with_gpio_as_cs(SPI_Type *ptr);
22 void init_gptmr_pins(GPTMR_Type *ptr);
23 void init_hall_trgm_pins(void);
24 void init_qei_trgm_pins(void);
25 void init_butn_pins(void);
26 void init_acmp_pins(void);
27 void init_pwm_pins(PWM_Type *ptr);
28 void init_adc_pins(void);
29 void init_adc_bldc_pins(void);
30 void init_adc_qeiv2_pins(void);
31 void init_usb_pins(void);
32 void init_can_pins(MCAN_Type *ptr);
33 void init_dac_pins(DAC_Type *ptr);
34 void init_led_pins_as_gpio(void);
35 void init_led_pins_as_pwm(void);
36 void init_plb_pins(void);
37 void init_qeo_pins(QEO_Type *ptr);
38 void init_sei_pins(SEI_Type *ptr, uint8_t sei_ctrl_idx);
39 void init_rdc_pin(void);
40 void init_qeiv2_uvw_pins(QEIV2_Type *ptr);
41 void init_qeiv2_ab_pins(QEIV2_Type *ptr);
42 void init_qeiv2_abz_pins(QEIV2_Type *ptr);
43 void init_opamp_pins(void);
44 void init_lin_transceiver_ctrl_pin(void);
45 #ifdef __cplusplus
46 }
47 #endif
48 #endif /* HPM_PINMUX_H */
49