mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-19 09:05:48 -04:00

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@343 013db118-44a6-b54f-8bf7-843cb86687b1
21 lines
481 B
C
21 lines
481 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; force_off = false; }
|
|
|
|
#endif
|