mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -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@182 013db118-44a6-b54f-8bf7-843cb86687b1
21 lines
470 B
C
21 lines
470 B
C
#ifndef _sw_
|
|
#define _sw_
|
|
|
|
#include "config.h"
|
|
|
|
extern u8 SW_pow_count;
|
|
extern bit SW_pow_mask;
|
|
|
|
#define INTERVAL_TSK_SW 8
|
|
#define CLICK_THRESHOLD 2
|
|
|
|
#ifdef _FORCE_OFF_1SEC_
|
|
#define HOLD_THREASHOLD (u8)( 800 / INTERVAL_TSK_SW )
|
|
#define FORCEOFF_THREASHOLD (u8)( 1200 / INTERVAL_TSK_SW /10 )
|
|
#else
|
|
#define HOLD_THREASHOLD (u8)( 2000 / INTERVAL_TSK_SW )
|
|
#define FORCEOFF_THREASHOLD (u8)( 4000 / INTERVAL_TSK_SW /10 )
|
|
#endif
|
|
|
|
#endif
|