ctr_mcu/flower_toriaezu1/pedometer.h
n2232 44d462ce13 仕様1
・スリープ(蓋閉じ)中だけ電源長押しオフを効かなくする(全機種共通)
 else if( SW_pow_count == ( HOLD_THREASHOLD ) ) が無しのイメージ?
・スリープスイッチがスリープになってるときは、HOME+PWRの短押しで電源オン
 これは機種判定してFLOWERのときのみ。CTRでは、PWRオンリー
 ON_CHECK時の電源監視での短押し判定にSW_home_countあたりをアンドする?

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@514 013db118-44a6-b54f-8bf7-843cb86687b1
2013-02-21 00:19:25 +00:00

37 lines
713 B
C
Raw Blame History

#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