ctr_mcu/branches/1.05(sdk_0_12)/sw.h

16 lines
292 B
C

#ifndef _sw_
#define _sw_
#include "config.h"
extern u16 SW_pow_count;
extern bit SW_pow_mask;
#define INTERVAL_TSK_SW 8
#define CLICK_THRESHOLD 2
#define HOLD_THREASHOLD (u8)( 2000 /INTERVAL_TSK_SW /SYS_INTERVAL_TICK )
#define FORCEOFF_THREASHOLD 50
#endif