39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
#ifndef __KT_H__
|
|
#define __KT_H__
|
|
|
|
#include "system/includes.h"
|
|
|
|
/*---------- AD Values ----------*/
|
|
// VOL- 837
|
|
// VOL+ 812
|
|
// PP 783
|
|
// PREV 747
|
|
// NEXT 701
|
|
|
|
|
|
#define KTCFG_PA_MUTE_PIN IO_PORTB_09
|
|
#define PA_MUTE() (gpio_set_output_value(KTCFG_PA_MUTE_PIN,0))
|
|
#define PA_UNMUTE() (gpio_set_output_value(KTCFG_PA_MUTE_PIN,1))
|
|
|
|
#define KTCFG_PWR_LED_PIN IO_PORTC_03
|
|
#define KTCFG_BAK_LED_PIN IO_PORTC_04
|
|
#define KTCFG_BT_LED_PIN IO_PORTC_05
|
|
|
|
|
|
#define BT_LED_ON() (gpio_set_output_value(KTCFG_BT_LED_PIN,1))
|
|
#define BT_LED_OFF() (gpio_set_output_value(KTCFG_BT_LED_PIN,0))
|
|
|
|
#define PWR_LED_ON() (gpio_set_output_value(KTCFG_PWR_LED_PIN,0))
|
|
#define PWR_LED_OFF() (gpio_set_output_value(KTCFG_PWR_LED_PIN,1))
|
|
|
|
#define BAK_LED_ON() (gpio_set_output_value(KTCFG_BAK_LED_PIN,1))
|
|
#define BAK_LED_OFF() (gpio_set_output_value(KTCFG_BAK_LED_PIN,0))
|
|
|
|
|
|
u8 kt_key_event_filter_after(int key_event);
|
|
|
|
void kt_init(void);
|
|
void kt_boot_init(void);
|
|
|
|
|
|
#endif |