ctr_mcu/branches/nup0/sw.h
n2232 5d39dbe347 [branch] 0nup 1.33
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@339 013db118-44a6-b54f-8bf7-843cb86687b1
2011-06-09 08:44:21 +00:00

21 lines
495 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 5
#define HOLD_THREASHOLD (u16)( 3000 /INTERVAL_TSK_SW )
#define TIME_PWSW_CLICK (u8)( 220 /INTERVAL_TSK_SW )
#define FORCEOFF_THREASHOLD (u8)( 12000 /INTERVAL_TSK_SW /16 )
extern u16 off_timeout_timer;
#define clear_pow_off_countdown(){ off_timeout_timer = 0; system_status.force_off = false; }
#endif