;--------------------------------------------------------
; File Created by ChiponCC : aolisn inc.
; Version 3.0.4#6752 (Jun  6 2016 11:07:59) (MSVC)
; This file was generated Mon Jul 04 11:12:51 2016
;--------------------------------------------------------
; chipon port for the 16-bit core
;--------------------------------------------------------
;	.file	"../kf8s_touch_w.c"
	.radix dec
	.include "KF8F333.inc"
;--------------------------------------------------------
; external declarations
;--------------------------------------------------------
	.extern	_init_mcu
	.extern	__KF8S_Get_Ver_Waterproof_
	.extern	__KF8S_Lib_Set_Waterproof_Parameter
	.extern	__KF8S_Init_Touch_Waterproof_
	.extern	__KF8S_Touch_Process_Waterproof_
	.extern	__KF8S_Touch_TEST_Waterproof_
	.extern	__R2PCL
	.extern	_TOUCH_DEBUG_TRS_DEAL
	.extern	_TOUCH_DEBUG_SEND_OUT
	.extern	_delay_ms
	.extern	_delay_us
	.extern	_PSW_bits
	.extern	_P0_bits
	.extern	_P2_bits
	.extern	_P1_bits
	.extern	_P4_bits
	.extern	_INTCTL_bits
	.extern	_EIF1_bits
	.extern	_EIF2_bits
	.extern	_T1CTL_bits
	.extern	_T2CTL_bits
	.extern	_PWMCTL_bits
	.extern	_CMCTL0_bits
	.extern	_CMCTL1_bits
	.extern	_AMPCTL_bits
	.extern	_ANSEH_bits
	.extern	_ADCCTL0_bits
	.extern	_OPTR_bits
	.extern	_TR0_bits
	.extern	_TR2_bits
	.extern	_TR1_bits
	.extern	_TR4_bits
	.extern	_EIE1_bits
	.extern	_EIE2_bits
	.extern	_PCTL_bits
	.extern	_OSCCTL_bits
	.extern	_ANSEL_bits
	.extern	_PUR_bits
	.extern	_IOCL_bits
	.extern	_ADCCTL1_bits
	.extern	_T3L_bits
	.extern	_AMPCALI_bits
	.extern	_CTCTL_bits
	.extern	_PWM3CTL0_bits
	.extern	_RSCTL_bits
	.extern	_PWM3CTL1_bits
	.extern	_P3ASCTL_bits
	.extern	_PATRCTL_bits
	.extern	_OSCLDOCAL_bits
	.extern	_BRCTL_bits
	.extern	_TSCTL_bits
	.extern	_EUBRGL_bits
	.extern	_EUBRGH_bits
	.extern	__KF8_LIBc_channel_Buf
	.extern	_sentbuf1
	.extern	_sentbuf2
	.extern	_sentbuf3
	.extern	_sentbuf4
	.extern	_T0
	.extern	_PCL
	.extern	_PSW
	.extern	_P0
	.extern	_P2
	.extern	_P1
	.extern	_P4
	.extern	_PCH
	.extern	_INTCTL
	.extern	_EIF1
	.extern	_EIF2
	.extern	_T1L
	.extern	_T1H
	.extern	_T1CTL
	.extern	_T2
	.extern	_T2CTL
	.extern	_PWM1L
	.extern	_PWM1H
	.extern	_PWMCTL
	.extern	_PP1
	.extern	_CMCTL0
	.extern	_CMCTL1
	.extern	_AMPCTL
	.extern	_VRECAL
	.extern	_ANSEH
	.extern	_ADCDATAH
	.extern	_ADCCTL0
	.extern	_OPTR
	.extern	_TR0
	.extern	_TR2
	.extern	_TR1
	.extern	_TR4
	.extern	_EIE1
	.extern	_EIE2
	.extern	_PCTL
	.extern	_OSCCTL
	.extern	_OSCCAL0
	.extern	_ANSEL
	.extern	_PP2
	.extern	_PWM2L
	.extern	_PWM2H
	.extern	_PUR
	.extern	_IOCL
	.extern	_OSCCAL1
	.extern	_BADDRH
	.extern	_BADDRL
	.extern	_EECTL1
	.extern	_EECTL2
	.extern	_ADCDATAL
	.extern	_ADCCTL1
	.extern	_T3L
	.extern	_AMPCALI
	.extern	_PP3
	.extern	_CTCTL
	.extern	_T2CCR
	.extern	_PWM3L
	.extern	_PWM3H
	.extern	_PWM3CTL0
	.extern	_RSCTL
	.extern	_TXSDR
	.extern	_RXSDR
	.extern	_PWM3CTL1
	.extern	_P3ASCTL
	.extern	_PATRCTL
	.extern	_OSCLDOCAL
	.extern	_T1U
	.extern	_BRCTL
	.extern	_TSCTL
	.extern	_EUBRGL
	.extern	_EUBRGH

	.extern STK12
	.extern STK11
	.extern STK10
	.extern STK09
	.extern STK08
	.extern STK07
	.extern STK06
	.extern STK05
	.extern STK04
	.extern STK03
	.extern STK02
	.extern STK01
	.extern STK00
;--------------------------------------------------------
; global declarations
;--------------------------------------------------------
	.global	__KF8_LIBc_baseline_count_
	.global	__KF8_LIBi_buff_hit_
	.global	__KF8_LIBi_buff_baseline_
	.global	__KF8_LIBc_touch_count_
	.global	__KF8_LIBi_Date_Change_
	.global	__KF8_LIBc_channel_
	.global	__KF8_LIBi_channel_flag_
	.global	_CHS_AMOUNT
	.global	_TCS_AMOUNT
	.global	__KF8_Disturb_Protect_Circle_
	.global	__KF8_DoubleKey_Compages_Limitable_Circle_
	.global	__KF8_Key_Max_Pressed_Limitable_Circle_
	.global	__KF8_BaseLine_Update_Circle_Count_For_UP_
	.global	__KF8_BaseLine_Update_Circle_Count_For_Down_
	.global	__KF8_Define_Disturb_Channels_Amount_
	.global	__KF8_BasicLine_UP_Noise_Threshold_
	.global	__KF8_BasicLine_Down_Noise_Threshold_
	.global	__KF8_Data_Steady_Threshold_Set_
	.global	__KF8_Inside_Reference_Channel_Disturb_Threshold_Set_
	.global	_Double_Key_SET_EN_1
	.global	_Double_Key_SET_EN_2
	.global	_Double_Key_SET_EN_3
	.global	__KF8_TOUCH_CH_EN
	.global	__KF8_Inside_Reference_Channel_Declare_
	.global	__KF8_Config_Finger_Threshold
	.global	__KF8_Water_Monitor_
	.global	__KF8_CONFIG_FINGER_THRESHOLD_IN_WATER_

;--------------------------------------------------------
; global definitions
;--------------------------------------------------------
UD_kf8s_touch_w_0	.udata
__KF8_LIBc_baseline_count_	.res	8

UD_kf8s_touch_w_1	.udata
__KF8_LIBi_buff_hit_	.res	16

UD_kf8s_touch_w_2	.udata
__KF8_LIBi_buff_baseline_	.res	16

UD_kf8s_touch_w_3	.udata
__KF8_LIBc_touch_count_	.res	8

UD_kf8s_touch_w_4	.udata
__KF8_LIBi_Date_Change_	.res	16

UD_kf8s_touch_w_5	.udata
__KF8_LIBc_channel_	.res	1

UD_kf8s_touch_w_6	.udata
__KF8_LIBi_channel_flag_	.res	2

;--------------------------------------------------------
; absolute symbol definitions
;--------------------------------------------------------
;--------------------------------------------------------
; compiler-defined variables
;--------------------------------------------------------
;--------------------------------------------------------
; initialized data
;--------------------------------------------------------

ID_kf8s_touch_w_0	.code
_CHS_AMOUNT
	RRET R0, #0x08


ID_kf8s_touch_w_1	.code
_TCS_AMOUNT
	RRET R0, #0x03


ID_kf8s_touch_w_2	.code
__KF8_Disturb_Protect_Circle_
	RRET R0, #0xc8
	RRET R0, #0x00


ID_kf8s_touch_w_3	.code
__KF8_DoubleKey_Compages_Limitable_Circle_
	RRET R0, #0x20
	RRET R0, #0x03


ID_kf8s_touch_w_4	.code
__KF8_Key_Max_Pressed_Limitable_Circle_
	RRET R0, #0x40
	RRET R0, #0x1f


ID_kf8s_touch_w_5	.code
__KF8_BaseLine_Update_Circle_Count_For_UP_
	RRET R0, #0x40


ID_kf8s_touch_w_6	.code
__KF8_BaseLine_Update_Circle_Count_For_Down_
	RRET R0, #0xc0


ID_kf8s_touch_w_7	.code
__KF8_Define_Disturb_Channels_Amount_
	RRET R0, #0x03


ID_kf8s_touch_w_8	.code
__KF8_BasicLine_UP_Noise_Threshold_
	RRET R0, #0xdd


ID_kf8s_touch_w_9	.code
__KF8_BasicLine_Down_Noise_Threshold_
	RRET R0, #0x23


ID_kf8s_touch_w_10	.code
__KF8_Data_Steady_Threshold_Set_
	RRET R0, #0x14


ID_kf8s_touch_w_11	.code
__KF8_Inside_Reference_Channel_Disturb_Threshold_Set_
	RRET R0, #0x0f


ID_kf8s_touch_w_12	.code
_Double_Key_SET_EN_1
	RRET R0, #0x01


ID_kf8s_touch_w_13	.code
_Double_Key_SET_EN_2
	RRET R0, #0x23


ID_kf8s_touch_w_14	.code
_Double_Key_SET_EN_3
	RRET R0, #0x45


ID_kf8s_touch_w_15	.code
__KF8_TOUCH_CH_EN
	RRET R0, #0x00
	RRET R0, #0x01
	RRET R0, #0x02
	RRET R0, #0x03
	RRET R0, #0x04
	RRET R0, #0x05
	RRET R0, #0x06
	RRET R0, #0x07


ID_kf8s_touch_w_16	.code
__KF8_Inside_Reference_Channel_Declare_
	RRET R0, #0x14


ID_kf8s_touch_w_17	.code
__KF8_Config_Finger_Threshold
	RRET R0, #0x32
	RRET R0, #0x00
	RRET R0, #0x32
	RRET R0, #0x00
	RRET R0, #0x32
	RRET R0, #0x00
	RRET R0, #0x32
	RRET R0, #0x00
	RRET R0, #0x32
	RRET R0, #0x00
	RRET R0, #0x32
	RRET R0, #0x00
	RRET R0, #0x32
	RRET R0, #0x00
	RRET R0, #0x32
	RRET R0, #0x00


ID_kf8s_touch_w_18	.code
__KF8_Water_Monitor_
	RRET R0, #0x19


ID_kf8s_touch_w_19	.code
__KF8_CONFIG_FINGER_THRESHOLD_IN_WATER_
	RRET R0, #0x64
	RRET R0, #0x00
	RRET R0, #0x64
	RRET R0, #0x00
	RRET R0, #0x64
	RRET R0, #0x00
	RRET R0, #0x64
	RRET R0, #0x00
	RRET R0, #0x64
	RRET R0, #0x00
	RRET R0, #0x64
	RRET R0, #0x00
	RRET R0, #0x64
	RRET R0, #0x00
	RRET R0, #0x64
	RRET R0, #0x00

;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
;	.udata_ovr

;	code size estimation:
;	    0+    0 =     0 instructions (    0 byte)


	.end
