KT25-1015_AC695x_SDK310/apps/kaotings/kt.c
2026-03-09 17:39:24 +08:00

43 lines
852 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "kt.h"
void kt_boot_init(void)
{
// mute pin
gpio_set_pull_up(KT_CFG_MUTE_PIN, 0);
gpio_set_pull_down(KT_CFG_MUTE_PIN, 0);
gpio_set_direction(KT_CFG_MUTE_PIN, 0);
PA_MUTE();
// b led pin
gpio_set_pull_up(KT_CFG_B_LED_PIN, 0);
gpio_set_pull_down(KT_CFG_B_LED_PIN, 0);
gpio_set_direction(KT_CFG_B_LED_PIN, 0);
KT_CFG_B_LED_OFF();
// r led pin
gpio_set_pull_up(KT_CFG_R_LED_PIN, 0);
gpio_set_pull_down(KT_CFG_R_LED_PIN, 0);
gpio_set_direction(KT_CFG_R_LED_PIN, 0);
KT_CFG_R_LED_OFF();
}
/**
* @brief 切换AUX口
* @param aux_idx AUX口索引0:LINEIN 1:LP
*/
void kt_aux_switch_to(u8 aux_idx)
{
if (aux_idx == KT_CFG_AUX_IDX_LINEIN)
{
//AUX2 PB9 & PB10
}
else
{
//AUX0 PA0 & PA1
}
}
void kt_init(void)
{
printf("kt_init\n");
}