mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-18 16:45:33 -04:00
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
|