mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
・スリープ(蓋閉じ)中だけ電源長押しオフを効かなくする(全機種共通) else if( SW_pow_count == ( HOLD_THREASHOLD ) ) が無しのイメージ? ・スリープスイッチがスリープになってるときは、PWRの長押しでのみ電源オン ・このとき、長押しを3秒でなく、10秒にして欲しい ・これは機種判定してFLOWERのときのみの挙動 git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@515 013db118-44a6-b54f-8bf7-843cb86687b1
37 lines
713 B
C
37 lines
713 B
C
#ifndef _pedo_
|
||
#define _pedo_
|
||
|
||
#ifdef WIN32
|
||
typedef unsigned char bit;
|
||
typedef unsigned char u8;
|
||
typedef unsigned short u16;
|
||
|
||
|
||
#endif
|
||
|
||
|
||
// =========================================================
|
||
extern bit pedolog_read_msb;
|
||
|
||
|
||
|
||
// =========================================================
|
||
//void hosu_read_end( ); ƒ}ƒNƒ<4E>‰»
|
||
#define hosu_read_end() pedolog_read_msb = 0
|
||
|
||
u8 hosu_read( );
|
||
void hosu_increment_if_necessary();
|
||
void fill_hosu_hist_hours( u16 );
|
||
void clear_hosu_hist();
|
||
void pedometer();
|
||
|
||
|
||
|
||
// =========================================================
|
||
#define PEDOMETER_LOG_SIZE ( 24 * 7 )
|
||
|
||
|
||
|
||
// =========================================================
|
||
#endif
|