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

57 lines
2.0 KiB
C
Raw Normal View History

2026-04-20 06:50:04 +00:00
#ifndef __KT_H__
#define __KT_H__
#include "system/includes.h"
#define KT_CFG_USB_PLUG_DET_PIN IO_PORTB_03 //USB插拔检测引脚 检测到插入后,闪烁显示电量
#define KT_CFG_VIBRATION_SW_PIN IO_PORTB_04 //振动开关反馈引脚,一直摇动这里会有反应
#define KT_CFG_PA_MUTE_PIN IO_PORTB_00 //PA静音引脚,低开高关,默认硬件上拉
#define PA_MUTE() gpio_set_output_value(KT_CFG_PA_MUTE_PIN, 1)
#define PA_UNMUTE() gpio_set_output_value(KT_CFG_PA_MUTE_PIN, 0)
#define KT_CFG_VBAT_DET_PIN IO_PORTA_12 //电池电压ADC检测引脚
/* 前风扇 档位循环以及数码管显示
L-0 L-1 L-2 L-3 L-4 L-5 L-6
1 2 3 4 5 6
*/
#define KT_CFG_FRONT_FAN_PIN IO_PORTB_05 //前风扇控制引脚
/* 后风扇 档位循环以及数码管显示
F-0 F-1 F-2 F-3 F-4 F-5 F-6
1 2 3 4 5 6
*/
#define KT_CFG_REAR_FAN_PIN IO_PORTB_06 //后风扇控制引脚
/* 左右风扇 档位循环以及数码管显示
C-0 C-1 C-2 C-3 C-4 C-5 C-6
1 2 3 4 5 6
*/
#define KT_CFG_LR_FAN_PIN IO_PORTA_10 //左右风扇控制引脚
/* 空调 档位循环以及数码管显示
AC0 AC1 AC2
(AC1)->(AC2)->(AC0)
*/
#define KT_CFG_AIR_COND_PIN IO_PORTA_11 //空调控制
/* LED 语音 数码管不显示,但是激活电量显示
->->
*/
#define KT_CFG_LED_PIN IO_PORTB_02 //LED控制引脚
void kt_boot_init(void);
void kt_init(void);
u8 kt_key_event_filter_after(int key_event,int key_value);
#endif