KT25-1015_AC695x_SDK310/apps/kaotings/kt.c

50 lines
1.1 KiB
C
Raw Normal View History

2026-03-09 09:39:24 +00:00
#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();
}
2026-03-13 09:16:59 +00:00
extern void eff_file_switch(u8 *path);
2026-03-09 09:39:24 +00:00
/**
2026-03-13 09:16:59 +00:00
* @brief EQ
* @param eq_idx EQ索引0:NORMAL 1:LP
2026-03-09 09:39:24 +00:00
*/
2026-03-13 09:16:59 +00:00
void kt_eq_switch_to(u8 eq_idx)
2026-03-09 09:39:24 +00:00
{
2026-03-13 09:16:59 +00:00
if (eq_idx == KT_EQ_IDX_LP)
2026-03-09 09:39:24 +00:00
{
2026-03-13 09:16:59 +00:00
//LP EQ
//strcpy(EFF_CFG_FILE_NAME, EQ_FILE_BT);
printf("kt_eq_switch_to: LP\n");
eff_file_switch(EQ_FILE_LP);
2026-03-09 09:39:24 +00:00
}
else
{
2026-03-13 09:16:59 +00:00
//BT EQ
//strcpy(EFF_CFG_FILE_NAME, EQ_FILE_BT);
printf("kt_eq_switch_to: BT\n");
eff_file_switch(EQ_FILE_BT);
}
2026-03-09 09:39:24 +00:00
}
void kt_init(void)
{
printf("kt_init\n");
}