歩数計を各レコード 2バイトに

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@26 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
fujita_ryohei 2009-11-13 07:42:57 +00:00
parent 55ef3eee63
commit 10e2a9b12c
2 changed files with 11 additions and 2 deletions

View File

@ -49,7 +49,7 @@
#define VREG_BITMASK_ACC_CONF_ACQ ( 1 << 0 )
// ========================================================
static u8 hyst_pedometer[256];
static u16 hyst_pedometer[256];
// ========================================================

View File

@ -233,7 +233,16 @@ u8 vreg_ctr_read( u8 adrs )
{
return( vreg_ctr[ VREG_C_MCU_STATUS ] | ( ( vreg_twl[ REG_TWL_INT_ADRS_MODE ] & 0x03 ) << 6 ) );
}
return ( vreg_ctr[adrs] );
#ifdef _debug_
if( adrs >= VREG_C_ENDMARK_ )
{
return( 0xEE );
}
else
#endif
{
return ( vreg_ctr[adrs] );
}
}