mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
16 lines
292 B
C
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
|