TORIAEZU 白箱でHOMEが効かないのを修正

ADCのスケーリングにミスがあるのはまだ修正中
TORIAEZU キャプチャ箱の判定を追加。(途中)
TWLあぷりで電池残量が実機の赤LEDとタイミングが1段階ずれていた


git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@214 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
N2232 2010-07-28 05:41:49 +00:00
parent c0b785505a
commit 43c5369e70
17 changed files with 1294 additions and 1386 deletions

View File

@ -31,6 +31,7 @@ typedef struct filter_work
u8* value_used;
s8 diffs; // KIKAN中の偏り具合
s8 kikan;
u8 large_diff_count;
}filter_work;
@ -86,17 +87,17 @@ void tsk_adc( )
#ifdef _DEBUG_CODEC_POLLING_
// debug
{
static bit interval;
static u8 interval;
// VOL書き頻度を半分にする
// VOL<EFBFBD>«•p“x
interval++;
if( !interval )
if( interval == 3 )
{
return;
interval = 0;
renge_task_immed_add( tski_vol_update ); // T = 2ms polling
}
}
renge_task_immed_add( tski_vol_update ); // T = 2ms polling
#endif
if( task_interval-- != 0 )
@ -413,24 +414,32 @@ u8 get_adc( u8 ch )
/* ========================================================
VRの可動範囲を考えてスケーリング
======================================================== */
#define ASOBI_L 4
#define ASOBI_H 16
//#define ASOBI_L 4
//#define ASOBI_H 16
#define ASOBI_L 32+2+1
#define ASOBI_H 32+2+1
static u8 adc_scaling( u8 orig_val )
{
u16 temp;
if( orig_val > ( 255 - ASOBI_H ))
{
return( 255 );
}
if( orig_val <= ASOBI_L )
{
return( 0 );
}
if( orig_val >= ( 255 - ASOBI_H ))
{
return( 255 );
}
orig_val -= ASOBI_L;
temp = (u16)( orig_val * 256 ) / ( 256 - ( ASOBI_L + ASOBI_H ));
if( temp > 255 )
{
temp = 255;
}
return( (u8)( temp & 0xFF ) );
}
@ -438,8 +447,6 @@ static u8 adc_scaling( u8 orig_val )
/* ========================================================
V2
@ -448,16 +455,20 @@ static u8 adc_scaling( u8 orig_val )
static void adc_filter( u8 new_val, filter_work *work )
{
u8 temp;
if( abs( new_val - *( work -> value_used )) > 2 )
{
// 大きく離れた
*( work -> value_used ) = new_val;
work -> diffs = 0;
work -> kikan = KIKAN;
work -> large_diff_count += 1;
if( work -> large_diff_count > 3 )
{
*( work -> value_used ) = new_val;
work -> diffs = 0;
work -> kikan = KIKAN;
}
}
else
{
work -> large_diff_count = 0;
// 近所の値でも、ある期間でいっぱい偏っていたらそっちに寄せる
if( *( work -> value_used ) < new_val )
{

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -1,19 +1,20 @@
78K0R Linker W1.31 Date:16 Jul 2010 Page: 1
78K0R Linker W1.31 Date:28 Jul 2010 Page: 1
Command: -yC:\Program Files\NEC Electronics Tools\DEV -_msgoff -obsr.l
mf ..\..\..\Program Files\NEC Electronics Tools\CC78K0R\W2.10
\lib78k0r\s0rm.rel -gi10A84B295BE95C03D45Bh -pbsr_k0r.map -nk
d -gb7EFFFFh -bC:\Program Files\NEC Electronics Tools\FSL78K0
R_Type02ES\V1.20\lib78k0r\fsl.lib -bcl0rdm.lib -bcl0rm.lib -b
cl0rmf.lib -iC:\Program Files\NEC Electronics Tools\CC78K0R\W
2.10\lib78k0r -dbsr_mcu.dr -s -w0 loader.rel pm.rel i2c_ctr.r
el main.rel magic.rel WDT.rel i2c_mcu.rel i2c_twl.rel led.rel
rtc.rel vreg_ctr.rel vreg_twl.rel adc.rel renge.rel accero.r
el self_flash.rel sw.rel task_debug.rel task_misc.rel task_sy
s.rel pedo_alg_thre_det2.rel ini_VECT.rel task_status.rel
\lib78k0r\s0rm.rel -go85h,0FC00h,1024 -gi10A84B295BE95C03D45B
h -pbsr_k0r.map -nkd -gb7EFFFFh -bC:\Program Files\NEC Electr
onics Tools\FSL78K0R_Type02ES\V1.20\lib78k0r\fsl.lib -bcl0rdm
.lib -bcl0rm.lib -bcl0rmf.lib -iC:\Program Files\NEC Electron
ics Tools\CC78K0R\W2.10\lib78k0r -dbsr_mcu.dr -s -w0 loader.r
el pm.rel i2c_ctr.rel main.rel magic.rel WDT.rel i2c_mcu.rel
i2c_twl.rel led.rel rtc.rel vreg_ctr.rel vreg_twl.rel adc.rel
renge.rel accero.rel self_flash.rel sw.rel task_debug.rel ta
sk_misc.rel task_sys.rel pedo_alg_thre_det2.rel ini_VECT.rel
task_status.rel
Para-file:
Out-file: bsr.lmf
Map-file: bsr_k0r.map
@ -22,9 +23,9 @@ Direc-file:bsr_mcu.dr
*** Link information ***
64 output segment(s)
3D70H byte(s) real data
5384 symbol(s) defined
66 output segment(s)
3DB9H byte(s) real data
5401 symbol(s) defined
*** Memory map ***
@ -50,7 +51,11 @@ Direc-file:bsr_mcu.dr
LDR_CNSL 00002H 00000H CSEG PAGE64KP
LDR_CNSL self_flash
00002H 00000H
* gap * 00002H 0000EH
LDR_CNSL 00002H 00000H CSEG PAGE64KP
LDR_CNSL task_debug
00002H 00000H
??NMIROM 00002H 00002H CSEG
* gap * 00004H 0000CH
@@VECT10 00010H 00004H CSEG AT
@@VECT10 ini_VECT 00010H 00004H
* gap * 00014H 00008H
@ -86,52 +91,57 @@ Direc-file:bsr_mcu.dr
LDR_CODL i2c_mcu 000C4H 00000H
LDR_CODL self_flash
000C4H 00000H
LDR_CODL task_debug
000C4H 00000H
?CSEGSI 000C4H 0000AH CSEG
LDR_CODE 000CEH 00864H CSEG
LDR_CODE loader 000CEH 001CCH
LDR_CODE main 0029AH 0006EH
LDR_CODE WDT 00308H 00000H
LDR_CODE i2c_mcu 00308H 002F1H
?OCDSTAD 000CEH 0000AH CSEG
LDR_CODE 000D8H 00865H CSEG
LDR_CODE loader 000D8H 001CCH
LDR_CODE main 002A4H 0006EH
LDR_CODE WDT 00312H 00000H
LDR_CODE i2c_mcu 00312H 002F1H
LDR_CODE self_flash
005F9H 00339H
FSL_CODE 00932H 00322H CSEG
00603H 00339H
LDR_CODE task_debug
0093CH 00001H
FSL_CODE 0093DH 00322H CSEG
FSL_CODE fsl_block_cmd
00932H 0002BH
0093DH 0002BH
FSL_CODE fsl_block_check
0095DH 00013H
00968H 00013H
FSL_CODE fsl_common
00970H 0014FH
0097BH 0014FH
FSL_CODE fsl_reset
00ABFH 00001H
00ACAH 00001H
FSL_CODE fsl_si_ibf
00AC0H 00064H
00ACBH 00064H
FSL_CODE fsl_phySwap
00B24H 0004DH
00B2FH 0004DH
FSL_CODE fsl_si_common
00B71H 00061H
FSL_CODE fsl_swap 00BD2H 00030H
00B7CH 00061H
FSL_CODE fsl_swap 00BDDH 00030H
FSL_CODE fsl_write
00C02H 00052H
@@LCODE 00C54H 002AFH CSEG
@@LCODE @cstart 00C54H 0006DH
@@LCODE @imul 00CC1H 00011H
@@LCODE @lumul 00CD2H 0002BH
@@LCODE @isdiv 00CFDH 00022H
@@LCODE @iudiv 00D1FH 0002DH
@@LCODE @isrem 00D4CH 00021H
@@LCODE @iurem 00D6DH 0002FH
@@LCODE @lsdiv 00D9CH 00039H
@@LCODE @ludiv 00DD5H 0003FH
@@LCODE @divuw 00E14H 00034H
@@LCODE @ladd 00E48H 0000FH
@@LCODE @llsh 00E57H 0001BH
@@LCODE @lursh 00E72H 0001FH
@@LCODE @iscmp 00E91H 0000CH
@@LCODE @lscmp 00E9DH 00014H
@@LCODE @lband 00EB1H 00014H
@@LCODE @bcdtob 00EC5H 0001AH
@@LCODE @bbcd 00EDFH 00024H
* gap * 00F03H 000F3H
00C0DH 00052H
@@LCODE 00C5FH 002AFH CSEG
@@LCODE @cstart 00C5FH 0006DH
@@LCODE @imul 00CCCH 00011H
@@LCODE @lumul 00CDDH 0002BH
@@LCODE @isdiv 00D08H 00022H
@@LCODE @iudiv 00D2AH 0002DH
@@LCODE @isrem 00D57H 00021H
@@LCODE @iurem 00D78H 0002FH
@@LCODE @lsdiv 00DA7H 00039H
@@LCODE @ludiv 00DE0H 0003FH
@@LCODE @divuw 00E1FH 00034H
@@LCODE @ladd 00E53H 0000FH
@@LCODE @llsh 00E62H 0001BH
@@LCODE @lursh 00E7DH 0001FH
@@LCODE @iscmp 00E9CH 0000CH
@@LCODE @lscmp 00EA8H 00014H
@@LCODE @lband 00EBCH 00014H
@@LCODE @bcdtob 00ED0H 0001AH
@@LCODE @bbcd 00EEAH 00024H
* gap * 00F0EH 000E8H
MGC_LOAD 00FF6H 0000AH CSEG AT
MGC_LOAD magic 00FF6H 0000AH
@ -163,9 +173,6 @@ Direc-file:bsr_mcu.dr
@@CNSTL accero 02000H 00000H
@@CNSTL 02000H 00000H CSEG PAGE64KP
@@CNSTL sw 02000H 00000H
@@CNSTL 02000H 00000H CSEG PAGE64KP
@@CNSTL task_debug
02000H 00000H
@@CNSTL 02000H 00000H CSEG PAGE64KP
@@CNSTL task_misc
02000H 00000H
@ -183,7 +190,7 @@ Direc-file:bsr_mcu.dr
@@CNSTL @bcdtob 02000H 0000AH
@@CNSTL 0200AH 00010H CSEG PAGE64KP
@@CNSTL @bbcd 0200AH 00010H
@@R_INIT 0201AH 00038H CSEG UNIT64KP
@@R_INIT 0201AH 0003CH CSEG UNIT64KP
@@R_INIT @cstart 0201AH 00000H
@@R_INIT loader 0201AH 00000H
@@R_INIT pm 0201AH 00002H
@ -197,140 +204,138 @@ Direc-file:bsr_mcu.dr
@@R_INIT rtc 02024H 00000H
@@R_INIT vreg_ctr 02024H 00000H
@@R_INIT vreg_twl 02024H 00000H
@@R_INIT adc 02024H 0000AH
@@R_INIT renge 0202EH 00016H
@@R_INIT accero 02044H 00000H
@@R_INIT adc 02024H 0000EH
@@R_INIT renge 02032H 00016H
@@R_INIT accero 02048H 00000H
@@R_INIT self_flash
02044H 00000H
@@R_INIT sw 02044H 00002H
02048H 00000H
@@R_INIT sw 02048H 00002H
@@R_INIT task_debug
02046H 00000H
0204AH 00000H
@@R_INIT task_misc
02046H 00000H
@@R_INIT task_sys 02046H 00002H
0204AH 00000H
@@R_INIT task_sys 0204AH 00002H
@@R_INIT pedo_alg_thre_det2
02048H 00008H
@@R_INIT ini_VECT 02050H 00000H
0204CH 00008H
@@R_INIT ini_VECT 02054H 00000H
@@R_INIT task_status
02050H 00002H
@@R_INIT @rom 02052H 00000H
@@R_INIS 02052H 00000H CSEG UNIT64KP
@@R_INIS @cstart 02052H 00000H
@@R_INIS loader 02052H 00000H
@@R_INIS pm 02052H 00000H
@@R_INIS i2c_ctr 02052H 00000H
@@R_INIS main 02052H 00000H
@@R_INIS magic 02052H 00000H
@@R_INIS WDT 02052H 00000H
@@R_INIS i2c_mcu 02052H 00000H
@@R_INIS i2c_twl 02052H 00000H
@@R_INIS led 02052H 00000H
@@R_INIS rtc 02052H 00000H
@@R_INIS vreg_ctr 02052H 00000H
@@R_INIS vreg_twl 02052H 00000H
@@R_INIS adc 02052H 00000H
@@R_INIS renge 02052H 00000H
@@R_INIS accero 02052H 00000H
02054H 00002H
@@R_INIT @rom 02056H 00000H
@@R_INIS 02056H 00000H CSEG UNIT64KP
@@R_INIS @cstart 02056H 00000H
@@R_INIS loader 02056H 00000H
@@R_INIS pm 02056H 00000H
@@R_INIS i2c_ctr 02056H 00000H
@@R_INIS main 02056H 00000H
@@R_INIS magic 02056H 00000H
@@R_INIS WDT 02056H 00000H
@@R_INIS i2c_mcu 02056H 00000H
@@R_INIS i2c_twl 02056H 00000H
@@R_INIS led 02056H 00000H
@@R_INIS rtc 02056H 00000H
@@R_INIS vreg_ctr 02056H 00000H
@@R_INIS vreg_twl 02056H 00000H
@@R_INIS adc 02056H 00000H
@@R_INIS renge 02056H 00000H
@@R_INIS accero 02056H 00000H
@@R_INIS self_flash
02052H 00000H
@@R_INIS sw 02052H 00000H
02056H 00000H
@@R_INIS sw 02056H 00000H
@@R_INIS task_debug
02052H 00000H
02056H 00000H
@@R_INIS task_misc
02052H 00000H
@@R_INIS task_sys 02052H 00000H
02056H 00000H
@@R_INIS task_sys 02056H 00000H
@@R_INIS pedo_alg_thre_det2
02052H 00000H
@@R_INIS ini_VECT 02052H 00000H
02056H 00000H
@@R_INIS ini_VECT 02056H 00000H
@@R_INIS task_status
02052H 00000H
@@R_INIS @rom 02052H 00000H
@@CALT 02052H 00000H CSEG
@@CALT @cstart 02052H 00000H
@@CALT loader 02052H 00000H
@@CALT pm 02052H 00000H
@@CALT i2c_ctr 02052H 00000H
@@CALT main 02052H 00000H
@@CALT magic 02052H 00000H
@@CALT WDT 02052H 00000H
@@CALT i2c_mcu 02052H 00000H
@@CALT i2c_twl 02052H 00000H
@@CALT led 02052H 00000H
@@CALT rtc 02052H 00000H
@@CALT vreg_ctr 02052H 00000H
@@CALT vreg_twl 02052H 00000H
@@CALT adc 02052H 00000H
@@CALT renge 02052H 00000H
@@CALT accero 02052H 00000H
02056H 00000H
@@R_INIS @rom 02056H 00000H
@@CALT 02056H 00000H CSEG
@@CALT @cstart 02056H 00000H
@@CALT loader 02056H 00000H
@@CALT pm 02056H 00000H
@@CALT i2c_ctr 02056H 00000H
@@CALT main 02056H 00000H
@@CALT magic 02056H 00000H
@@CALT WDT 02056H 00000H
@@CALT i2c_mcu 02056H 00000H
@@CALT i2c_twl 02056H 00000H
@@CALT led 02056H 00000H
@@CALT rtc 02056H 00000H
@@CALT vreg_ctr 02056H 00000H
@@CALT vreg_twl 02056H 00000H
@@CALT adc 02056H 00000H
@@CALT renge 02056H 00000H
@@CALT accero 02056H 00000H
@@CALT self_flash
02052H 00000H
@@CALT sw 02052H 00000H
02056H 00000H
@@CALT sw 02056H 00000H
@@CALT task_debug
02052H 00000H
02056H 00000H
@@CALT task_misc
02052H 00000H
@@CALT task_sys 02052H 00000H
02056H 00000H
@@CALT task_sys 02056H 00000H
@@CALT pedo_alg_thre_det2
02052H 00000H
@@CALT ini_VECT 02052H 00000H
02056H 00000H
@@CALT ini_VECT 02056H 00000H
@@CALT task_status
02052H 00000H
@@RLINIT 02052H 00000H CSEG UNIT64KP
@@RLINIT loader 02052H 00000H
@@RLINIT pm 02052H 00000H
@@RLINIT i2c_ctr 02052H 00000H
@@RLINIT main 02052H 00000H
@@RLINIT magic 02052H 00000H
@@RLINIT WDT 02052H 00000H
@@RLINIT i2c_mcu 02052H 00000H
@@RLINIT i2c_twl 02052H 00000H
@@RLINIT led 02052H 00000H
@@RLINIT rtc 02052H 00000H
@@RLINIT vreg_ctr 02052H 00000H
@@RLINIT vreg_twl 02052H 00000H
@@RLINIT adc 02052H 00000H
@@RLINIT renge 02052H 00000H
@@RLINIT accero 02052H 00000H
02056H 00000H
@@RLINIT 02056H 00000H CSEG UNIT64KP
@@RLINIT loader 02056H 00000H
@@RLINIT pm 02056H 00000H
@@RLINIT i2c_ctr 02056H 00000H
@@RLINIT main 02056H 00000H
@@RLINIT magic 02056H 00000H
@@RLINIT WDT 02056H 00000H
@@RLINIT i2c_mcu 02056H 00000H
@@RLINIT i2c_twl 02056H 00000H
@@RLINIT led 02056H 00000H
@@RLINIT rtc 02056H 00000H
@@RLINIT vreg_ctr 02056H 00000H
@@RLINIT vreg_twl 02056H 00000H
@@RLINIT adc 02056H 00000H
@@RLINIT renge 02056H 00000H
@@RLINIT accero 02056H 00000H
@@RLINIT self_flash
02052H 00000H
@@RLINIT sw 02052H 00000H
02056H 00000H
@@RLINIT sw 02056H 00000H
@@RLINIT task_debug
02052H 00000H
02056H 00000H
@@RLINIT task_misc
02052H 00000H
@@RLINIT task_sys 02052H 00000H
02056H 00000H
@@RLINIT task_sys 02056H 00000H
@@RLINIT pedo_alg_thre_det2
02052H 00000H
@@RLINIT ini_VECT 02052H 00000H
02056H 00000H
@@RLINIT ini_VECT 02056H 00000H
@@RLINIT task_status
02052H 00000H
@@RLINIT @rom 02052H 00000H
@@CODEL 02052H 00000H CSEG
@@CODEL pm 02052H 00000H
@@CODEL i2c_ctr 02052H 00000H
@@CODEL magic 02052H 00000H
@@CODEL i2c_twl 02052H 00000H
@@CODEL led 02052H 00000H
@@CODEL rtc 02052H 00000H
@@CODEL vreg_ctr 02052H 00000H
@@CODEL vreg_twl 02052H 00000H
@@CODEL adc 02052H 00000H
@@CODEL renge 02052H 00000H
@@CODEL accero 02052H 00000H
@@CODEL sw 02052H 00000H
@@CODEL task_debug
02052H 00000H
02056H 00000H
@@RLINIT @rom 02056H 00000H
@@CODEL 02056H 00000H CSEG
@@CODEL pm 02056H 00000H
@@CODEL i2c_ctr 02056H 00000H
@@CODEL magic 02056H 00000H
@@CODEL i2c_twl 02056H 00000H
@@CODEL led 02056H 00000H
@@CODEL rtc 02056H 00000H
@@CODEL vreg_ctr 02056H 00000H
@@CODEL vreg_twl 02056H 00000H
@@CODEL adc 02056H 00000H
@@CODEL renge 02056H 00000H
@@CODEL accero 02056H 00000H
@@CODEL sw 02056H 00000H
@@CODEL task_misc
02052H 00000H
@@CODEL task_sys 02052H 00000H
02056H 00000H
@@CODEL task_sys 02056H 00000H
@@CODEL pedo_alg_thre_det2
02052H 00000H
@@CODEL ini_VECT 02052H 00000H
02056H 00000H
@@CODEL ini_VECT 02056H 00000H
@@CODEL task_status
02052H 00000H
@@LCODEL 02052H 00008H CSEG
@@LCODEL abs 02052H 00008H
* gap * 0205AH 000A6H
02056H 00000H
@@LCODEL 02056H 00008H CSEG
@@LCODEL abs 02056H 00008H
* gap * 0205EH 000A2H
MGC_MIMI 02100H 0000AH CSEG AT
MGC_MIMI magic 02100H 0000AH
@@CNST 0210AH 002BAH CSEG
@ -363,57 +368,55 @@ Direc-file:bsr_mcu.dr
@@CNST ini_VECT 023C4H 00000H
@@CNST task_status
023C4H 00000H
ROM_CODE 023C4H 026E5H CSEG
ROM_CODE pm 023C4H 009ACH
ROM_CODE i2c_ctr 02D70H 00060H
ROM_CODE i2c_twl 02DD0H 0005EH
ROM_CODE led 02E2EH 00503H
ROM_CODE rtc 03331H 000E0H
ROM_CODE vreg_ctr 03411H 00445H
ROM_CODE vreg_twl 03856H 00163H
ROM_CODE adc 039B9H 002A3H
ROM_CODE renge 03C5CH 001C3H
ROM_CODE accero 03E1FH 0013DH
ROM_CODE sw 03F5CH 000F5H
ROM_CODE task_debug
04051H 00001H
ROM_CODE 023C4H 0271DH CSEG
ROM_CODE pm 023C4H 009CBH
ROM_CODE i2c_ctr 02D8FH 00060H
ROM_CODE i2c_twl 02DEFH 0005EH
ROM_CODE led 02E4DH 00503H
ROM_CODE rtc 03350H 000E0H
ROM_CODE vreg_ctr 03430H 00445H
ROM_CODE vreg_twl 03875H 00162H
ROM_CODE adc 039D7H 002BFH
ROM_CODE renge 03C96H 001C3H
ROM_CODE accero 03E59H 0013DH
ROM_CODE sw 03F96H 000F4H
ROM_CODE task_misc
04052H 001BAH
ROM_CODE task_sys 0420CH 00309H
0408AH 001BAH
ROM_CODE task_sys 04244H 00309H
ROM_CODE pedo_alg_thre_det2
04515H 0050FH
0454DH 0050FH
ROM_CODE task_status
04A24H 00085H
@@BASE 04AA9H 004FCH CSEG BASE
@@BASE loader 04AA9H 00000H
@@BASE pm 04AA9H 00043H
@@BASE i2c_ctr 04AECH 00198H
@@BASE main 04C84H 00000H
@@BASE magic 04C84H 00000H
@@BASE WDT 04C84H 00000H
@@BASE i2c_mcu 04C84H 000D9H
@@BASE i2c_twl 04D5DH 000CDH
@@BASE led 04E2AH 00000H
@@BASE rtc 04E2AH 00043H
@@BASE vreg_ctr 04E6DH 00000H
@@BASE vreg_twl 04E6DH 00000H
@@BASE adc 04E6DH 000B3H
@@BASE renge 04F20H 00000H
@@BASE accero 04F20H 0004AH
04A5CH 00085H
@@BASE 04AE1H 004FCH CSEG BASE
@@BASE loader 04AE1H 00000H
@@BASE pm 04AE1H 00043H
@@BASE i2c_ctr 04B24H 00198H
@@BASE main 04CBCH 00000H
@@BASE magic 04CBCH 00000H
@@BASE WDT 04CBCH 00000H
@@BASE i2c_mcu 04CBCH 000D9H
@@BASE i2c_twl 04D95H 000CDH
@@BASE led 04E62H 00000H
@@BASE rtc 04E62H 00043H
@@BASE vreg_ctr 04EA5H 00000H
@@BASE vreg_twl 04EA5H 00000H
@@BASE adc 04EA5H 000B3H
@@BASE renge 04F58H 00000H
@@BASE accero 04F58H 0004AH
@@BASE self_flash
04F6AH 00000H
@@BASE sw 04F6AH 00000H
04FA2H 00000H
@@BASE sw 04FA2H 00000H
@@BASE task_debug
04F6AH 00000H
04FA2H 00000H
@@BASE task_misc
04F6AH 00000H
@@BASE task_sys 04F6AH 00000H
04FA2H 00000H
@@BASE task_sys 04FA2H 00000H
@@BASE pedo_alg_thre_det2
04F6AH 00000H
@@BASE ini_VECT 04F6AH 0003BH
04FA2H 00000H
@@BASE ini_VECT 04FA2H 0003BH
@@BASE task_status
04FA5H 00000H
* gap * 04FA5H 00051H
04FDDH 00000H
* gap * 04FDDH 00019H
MGC_TAIL 04FF6H 0000AH CSEG AT
MGC_TAIL magic 04FF6H 0000AH
@ -452,7 +455,7 @@ Direc-file:bsr_mcu.dr
@@DATA task_status
FFD06H 00002H
@@DATA @rom FFD08H 00000H
@@INIT FFD08H 00038H DSEG BASEP
@@INIT FFD08H 0003CH DSEG BASEP
@@INIT @cstart FFD08H 00000H
@@INIT loader FFD08H 00000H
@@INIT pm FFD08H 00002H
@ -466,149 +469,149 @@ Direc-file:bsr_mcu.dr
@@INIT rtc FFD12H 00000H
@@INIT vreg_ctr FFD12H 00000H
@@INIT vreg_twl FFD12H 00000H
@@INIT adc FFD12H 0000AH
@@INIT renge FFD1CH 00016H
@@INIT accero FFD32H 00000H
@@INIT adc FFD12H 0000EH
@@INIT renge FFD20H 00016H
@@INIT accero FFD36H 00000H
@@INIT self_flash
FFD32H 00000H
@@INIT sw FFD32H 00002H
FFD36H 00000H
@@INIT sw FFD36H 00002H
@@INIT task_debug
FFD34H 00000H
FFD38H 00000H
@@INIT task_misc
FFD34H 00000H
@@INIT task_sys FFD34H 00002H
FFD38H 00000H
@@INIT task_sys FFD38H 00002H
@@INIT pedo_alg_thre_det2
FFD36H 00008H
@@INIT ini_VECT FFD3EH 00000H
FFD3AH 00008H
@@INIT ini_VECT FFD42H 00000H
@@INIT task_status
FFD3EH 00002H
@@INIT @rom FFD40H 00000H
@@INIS FFD40H 00000H DSEG UNITP
@@INIS @cstart FFD40H 00000H
@@INIS loader FFD40H 00000H
@@INIS pm FFD40H 00000H
@@INIS i2c_ctr FFD40H 00000H
@@INIS main FFD40H 00000H
@@INIS magic FFD40H 00000H
@@INIS WDT FFD40H 00000H
@@INIS i2c_mcu FFD40H 00000H
@@INIS i2c_twl FFD40H 00000H
@@INIS led FFD40H 00000H
@@INIS rtc FFD40H 00000H
@@INIS vreg_ctr FFD40H 00000H
@@INIS vreg_twl FFD40H 00000H
@@INIS adc FFD40H 00000H
@@INIS renge FFD40H 00000H
@@INIS accero FFD40H 00000H
FFD42H 00002H
@@INIT @rom FFD44H 00000H
@@INIS FFD44H 00000H DSEG UNITP
@@INIS @cstart FFD44H 00000H
@@INIS loader FFD44H 00000H
@@INIS pm FFD44H 00000H
@@INIS i2c_ctr FFD44H 00000H
@@INIS main FFD44H 00000H
@@INIS magic FFD44H 00000H
@@INIS WDT FFD44H 00000H
@@INIS i2c_mcu FFD44H 00000H
@@INIS i2c_twl FFD44H 00000H
@@INIS led FFD44H 00000H
@@INIS rtc FFD44H 00000H
@@INIS vreg_ctr FFD44H 00000H
@@INIS vreg_twl FFD44H 00000H
@@INIS adc FFD44H 00000H
@@INIS renge FFD44H 00000H
@@INIS accero FFD44H 00000H
@@INIS self_flash
FFD40H 00000H
@@INIS sw FFD40H 00000H
FFD44H 00000H
@@INIS sw FFD44H 00000H
@@INIS task_debug
FFD40H 00000H
FFD44H 00000H
@@INIS task_misc
FFD40H 00000H
@@INIS task_sys FFD40H 00000H
FFD44H 00000H
@@INIS task_sys FFD44H 00000H
@@INIS pedo_alg_thre_det2
FFD40H 00000H
@@INIS ini_VECT FFD40H 00000H
FFD44H 00000H
@@INIS ini_VECT FFD44H 00000H
@@INIS task_status
FFD40H 00000H
@@INIS @rom FFD40H 00000H
@@DATS FFD40H 00000H DSEG UNITP
@@DATS @cstart FFD40H 00000H
@@DATS loader FFD40H 00000H
@@DATS pm FFD40H 00000H
@@DATS i2c_ctr FFD40H 00000H
@@DATS main FFD40H 00000H
@@DATS magic FFD40H 00000H
@@DATS WDT FFD40H 00000H
@@DATS i2c_mcu FFD40H 00000H
@@DATS i2c_twl FFD40H 00000H
@@DATS led FFD40H 00000H
@@DATS rtc FFD40H 00000H
@@DATS vreg_ctr FFD40H 00000H
@@DATS vreg_twl FFD40H 00000H
@@DATS adc FFD40H 00000H
@@DATS renge FFD40H 00000H
@@DATS accero FFD40H 00000H
FFD44H 00000H
@@INIS @rom FFD44H 00000H
@@DATS FFD44H 00000H DSEG UNITP
@@DATS @cstart FFD44H 00000H
@@DATS loader FFD44H 00000H
@@DATS pm FFD44H 00000H
@@DATS i2c_ctr FFD44H 00000H
@@DATS main FFD44H 00000H
@@DATS magic FFD44H 00000H
@@DATS WDT FFD44H 00000H
@@DATS i2c_mcu FFD44H 00000H
@@DATS i2c_twl FFD44H 00000H
@@DATS led FFD44H 00000H
@@DATS rtc FFD44H 00000H
@@DATS vreg_ctr FFD44H 00000H
@@DATS vreg_twl FFD44H 00000H
@@DATS adc FFD44H 00000H
@@DATS renge FFD44H 00000H
@@DATS accero FFD44H 00000H
@@DATS self_flash
FFD40H 00000H
@@DATS sw FFD40H 00000H
FFD44H 00000H
@@DATS sw FFD44H 00000H
@@DATS task_debug
FFD40H 00000H
FFD44H 00000H
@@DATS task_misc
FFD40H 00000H
@@DATS task_sys FFD40H 00000H
FFD44H 00000H
@@DATS task_sys FFD44H 00000H
@@DATS pedo_alg_thre_det2
FFD40H 00000H
@@DATS ini_VECT FFD40H 00000H
FFD44H 00000H
@@DATS ini_VECT FFD44H 00000H
@@DATS task_status
FFD40H 00000H
@@DATS @rom FFD40H 00000H
FSL_DATA FFD40H 00010H DSEG UNITP
FFD44H 00000H
@@DATS @rom FFD44H 00000H
FSL_DATA FFD44H 00010H DSEG UNITP
FSL_DATA fsl_common
FFD40H 00010H
@@INITL FFD50H 00000H DSEG UNIT64KP
@@INITL loader FFD50H 00000H
@@INITL pm FFD50H 00000H
@@INITL i2c_ctr FFD50H 00000H
@@INITL main FFD50H 00000H
@@INITL magic FFD50H 00000H
@@INITL WDT FFD50H 00000H
@@INITL i2c_mcu FFD50H 00000H
@@INITL i2c_twl FFD50H 00000H
@@INITL led FFD50H 00000H
@@INITL rtc FFD50H 00000H
@@INITL vreg_ctr FFD50H 00000H
@@INITL vreg_twl FFD50H 00000H
@@INITL adc FFD50H 00000H
@@INITL renge FFD50H 00000H
@@INITL accero FFD50H 00000H
FFD44H 00010H
@@INITL FFD54H 00000H DSEG UNIT64KP
@@INITL loader FFD54H 00000H
@@INITL pm FFD54H 00000H
@@INITL i2c_ctr FFD54H 00000H
@@INITL main FFD54H 00000H
@@INITL magic FFD54H 00000H
@@INITL WDT FFD54H 00000H
@@INITL i2c_mcu FFD54H 00000H
@@INITL i2c_twl FFD54H 00000H
@@INITL led FFD54H 00000H
@@INITL rtc FFD54H 00000H
@@INITL vreg_ctr FFD54H 00000H
@@INITL vreg_twl FFD54H 00000H
@@INITL adc FFD54H 00000H
@@INITL renge FFD54H 00000H
@@INITL accero FFD54H 00000H
@@INITL self_flash
FFD50H 00000H
@@INITL sw FFD50H 00000H
FFD54H 00000H
@@INITL sw FFD54H 00000H
@@INITL task_debug
FFD50H 00000H
FFD54H 00000H
@@INITL task_misc
FFD50H 00000H
@@INITL task_sys FFD50H 00000H
FFD54H 00000H
@@INITL task_sys FFD54H 00000H
@@INITL pedo_alg_thre_det2
FFD50H 00000H
@@INITL ini_VECT FFD50H 00000H
FFD54H 00000H
@@INITL ini_VECT FFD54H 00000H
@@INITL task_status
FFD50H 00000H
@@INITL @rom FFD50H 00000H
@@DATAL FFD50H 00000H DSEG UNIT64KP
@@DATAL loader FFD50H 00000H
@@DATAL pm FFD50H 00000H
@@DATAL i2c_ctr FFD50H 00000H
@@DATAL main FFD50H 00000H
@@DATAL magic FFD50H 00000H
@@DATAL WDT FFD50H 00000H
@@DATAL i2c_mcu FFD50H 00000H
@@DATAL i2c_twl FFD50H 00000H
@@DATAL led FFD50H 00000H
@@DATAL rtc FFD50H 00000H
@@DATAL vreg_ctr FFD50H 00000H
@@DATAL vreg_twl FFD50H 00000H
@@DATAL adc FFD50H 00000H
@@DATAL renge FFD50H 00000H
@@DATAL accero FFD50H 00000H
FFD54H 00000H
@@INITL @rom FFD54H 00000H
@@DATAL FFD54H 00000H DSEG UNIT64KP
@@DATAL loader FFD54H 00000H
@@DATAL pm FFD54H 00000H
@@DATAL i2c_ctr FFD54H 00000H
@@DATAL main FFD54H 00000H
@@DATAL magic FFD54H 00000H
@@DATAL WDT FFD54H 00000H
@@DATAL i2c_mcu FFD54H 00000H
@@DATAL i2c_twl FFD54H 00000H
@@DATAL led FFD54H 00000H
@@DATAL rtc FFD54H 00000H
@@DATAL vreg_ctr FFD54H 00000H
@@DATAL vreg_twl FFD54H 00000H
@@DATAL adc FFD54H 00000H
@@DATAL renge FFD54H 00000H
@@DATAL accero FFD54H 00000H
@@DATAL self_flash
FFD50H 00000H
@@DATAL sw FFD50H 00000H
FFD54H 00000H
@@DATAL sw FFD54H 00000H
@@DATAL task_debug
FFD50H 00000H
FFD54H 00000H
@@DATAL task_misc
FFD50H 00000H
@@DATAL task_sys FFD50H 00000H
FFD54H 00000H
@@DATAL task_sys FFD54H 00000H
@@DATAL pedo_alg_thre_det2
FFD50H 00000H
@@DATAL ini_VECT FFD50H 00000H
FFD54H 00000H
@@DATAL ini_VECT FFD54H 00000H
@@DATAL task_status
FFD50H 00000H
@@DATAL @rom FFD50H 00000H
* gap * FFD50H 000B0H
FFD54H 00000H
@@DATAL @rom FFD54H 00000H
* gap * FFD54H 000ACH
MEMORY=RAM2
BASE ADDRESS=FFE20H SIZE=000C0H

View File

@ -10,10 +10,10 @@
//#define _DEBUG_CODEC_POLLING_
//#define _PMIC_TEST_
//#define _ENABLE_WDT_TEST_
//#define _DBG_FORCE_JIKKI_
#define MCU_VER_MAJOR 0x01
#define MCU_VER_MINOR 0x00
#define MCU_VER_MINOR 0x01
//#define PM_CCIC_TIM

Binary file not shown.

View File

@ -214,7 +214,7 @@ void BT_chk()
bt_force_update = 0;
iic_mcu_start( ); // 中で初期化フラグをもってるので呼びまくって良い こんなところに…orz
if( (( battery_manufacturer_old == BT_VENDER_OPEN ) ||
( battery_manufacturer_old == BT_VENDER_NOT_CHECKED )) &&
( battery_manufacturer_old == BT_VENDER_NOT_CHECKED )) &&
!system_status.reboot )
{
BT_mgic_quick_start();
@ -240,6 +240,7 @@ void BT_model_detect()
temp = get_adc( ADC_SEL_BATT_DET );
BT_DET_P = 0;
system_status.fake_jikki = 0;
// プラットフォーム判定 //
if( raw_adc_temperature > 0xF0 )
{
@ -248,8 +249,16 @@ void BT_model_detect()
}
else if( raw_adc_temperature < 4 )
{
u8 temp;
// 白箱 //
system_status.model = MODEL_SHIROBAKO;
// もしかして:キャプチャボード //
if(( iic_mcu_read_a_byte( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_VERSION ) == 0x01 ) &&
( iic_mcu_result == ERR_OK ))
{
system_status.fake_jikki = 1;
}
}
else
{
@ -619,10 +628,10 @@ void BT_get_left(){
if( system_status.pwr_state != ON )
{
bt_remain_old = 0;
bt_remain_old = NTR_PM_BT_ENOUGH;
}
flag = (( vreg_ctr[ VREG_C_BT_REMAIN ] <= BATT_TH_LO )? 1 : 0 ); // 1で電池切れ
flag = (( vreg_ctr[ VREG_C_BT_REMAIN ] <= BATT_TH_LO )? NTR_PM_BT_EMPTY: NTR_PM_BT_ENOUGH ); // 1で電池切れ
if( bt_remain_old != flag )
{
@ -634,8 +643,6 @@ void BT_get_left(){
/* ========================================================
 

View File

@ -69,6 +69,12 @@ typedef enum BT_VENDER
enum NTR_PM_BT_STATUS{
NTR_PM_BT_ENOUGH,
NTR_PM_BT_EMPTY
};
//=========================================================
// CODEC上のPMIC互換レジスタ

View File

@ -129,11 +129,11 @@ void tsk_sw( )
{
# ifdef _MODEL_CTR_
case( MODEL_JIKKI ):
case( MODEL_SHIROBAKO ):
SW_HOME_n = SW_HOME_n_JIKKI;
break;
# endif
case( MODEL_TS_BOARD ):
case( MODEL_SHIROBAKO ):
SW_HOME_n = SW_HOME_n_TSBOARD;
break;
default:

View File

@ -3,9 +3,11 @@
#pragma HALT
#pragma STOP
#include "incs.h"
#include "incs_loader.h"
//#include "incs.h"
#include "renge\renge.h"
#include "pm.h"
#include "accero.h"
/* ========================================================

View File

@ -170,7 +170,7 @@ task_status_immed do_command0( )
{
going_to_sleep = 1;
}
if( ( vreg_ctr[VREG_C_COMMAND0] & ( REG_BIT_OFF_REQ | REG_BIT_RESET1_REQ | REG_BIT_FCRAM_RESET_REQ | REG_BIT_RESET2_REQ )) != 0x00 )
{
if( vreg_ctr[VREG_C_COMMAND0] & REG_BIT_OFF_REQ )
@ -247,7 +247,7 @@ extern bit bt_chg_ready;
======================================================== */
task_status_immed tski_mcu_info_read()
{
if( SPD )
{
goto end;
@ -270,7 +270,11 @@ task_status_immed tski_mcu_info_read()
switch( iic_burst_state++ ){
case( 0 ): // 本体種類識別
#ifdef _DBG_FORCE_JIKKI_
IICA = MODEL_JIKKI;
#else
IICA = (u8)system_status.model;
#endif
break;
case( 1 ): // IICがなにかエラーでも知らない。00かFFならエラーの可能性が高い
@ -297,7 +301,7 @@ task_status_immed tski_mcu_info_read()
IICA = raw_adc_temperature;
break;
case( 7 ):
case( 7 ):
IICA = ( !temp_zone_charge_disable | ( bt_chg_ready << 1 ) );
break;

View File

@ -110,16 +110,17 @@ u8 vreg_twl_read( u8 phy_adrs )
u8 temp;
switch( phy_adrs ){
// 10%以下で赤になる
case( REG_TWL_INT_ADRS_POWER_INFO ):
if( vreg_ctr[ VREG_C_BT_REMAIN ] > 90 ){
if( vreg_ctr[ VREG_C_BT_REMAIN ] > 80 ){
vreg_twl[ REG_TWL_INT_ADRS_POWER_INFO ] = 0x0F;
}else if( vreg_ctr[ VREG_C_BT_REMAIN ] > 75 ){
vreg_twl[ REG_TWL_INT_ADRS_POWER_INFO ] = 0x0B;
}else if( vreg_ctr[ VREG_C_BT_REMAIN ] > 50 ){
vreg_twl[ REG_TWL_INT_ADRS_POWER_INFO ] = 0x07;
vreg_twl[ REG_TWL_INT_ADRS_POWER_INFO ] = 0x0B;
}else if( vreg_ctr[ VREG_C_BT_REMAIN ] > BATT_TH_LO ){
vreg_twl[ REG_TWL_INT_ADRS_POWER_INFO ] = 0x03;
vreg_twl[ REG_TWL_INT_ADRS_POWER_INFO ] = 0x07;
}else if( vreg_ctr[ VREG_C_BT_REMAIN ] > BATT_TH_EMPTY ){
vreg_twl[ REG_TWL_INT_ADRS_POWER_INFO ] = 0x03;
}else if( vreg_ctr[ VREG_C_BT_REMAIN ] > 0 ){
vreg_twl[ REG_TWL_INT_ADRS_POWER_INFO ] = 0x01;
}else{
vreg_twl[ REG_TWL_INT_ADRS_POWER_INFO ] = 0x00;

View File

@ -1,23 +1,18 @@
C:\WINDOWS\system32\cmd.exe /c touch magic.c
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no loader.c
loader.c(104) : CC78K0R warning W0401: Conversion may lose significant digits
loader.c(105) : CC78K0R warning W0401: Conversion may lose significant digits
Compilation complete, 0 error(s) and 2 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\loader.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no pm.c
pm.c(225) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
pm.c(437) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(537) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(538) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(625) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(663) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(701) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(785) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(793) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(948) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
pm.c(1015) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(1018) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(661) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(699) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(783) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(791) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(871) : CC78K0R warning W0510: Pointer mismatch in function 'iic_mcu_read'
pm.c(952) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
pm.c(1019) : CC78K0R warning W0401: Conversion may lose significant digits
pm.c(1022) : CC78K0R warning W0401: Conversion may lose significant digits
batt_params.h(97) : CC78K0R warning W0401: Conversion may lose significant digits
batt_params.h(97) : CC78K0R warning W0401: Conversion may lose significant digits
batt_params.h(98) : CC78K0R warning W0401: Conversion may lose significant digits
@ -28,149 +23,14 @@ batt_params.h(100) : CC78K0R warning W0401: Conversion may lose significant digi
batt_params.h(101) : CC78K0R warning W0401: Conversion may lose significant digits
batt_params.h(102) : CC78K0R warning W0401: Conversion may lose significant digits
batt_params.h(103) : CC78K0R warning W0401: Conversion may lose significant digits
Compilation complete, 0 error(s) and 22 warning(s) found.
Compilation complete, 0 error(s) and 23 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\pm.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no i2c_ctr.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\i2c_ctr.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no main.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\main.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no magic.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\magic.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no WDT.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\WDT.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no i2c_mcu.c
i2c_mcu.c(205) : CC78K0R warning W0401: Conversion may lose significant digits
Compilation complete, 0 error(s) and 1 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\i2c_mcu.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no i2c_twl.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\i2c_twl.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no led.c
led.c(108) : CC78K0R warning W0745: Expected function prototype
led.c(241) : CC78K0R warning W0401: Conversion may lose significant digits
led.c(246) : CC78K0R warning W0401: Conversion may lose significant digits
led.c(308) : CC78K0R warning W0401: Conversion may lose significant digits
led.c(367) : CC78K0R warning W0401: Conversion may lose significant digits
led.c(393) : CC78K0R warning W0401: Conversion may lose significant digits
led.c(556) : CC78K0R warning W0401: Conversion may lose significant digits
Compilation complete, 0 error(s) and 7 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\led.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no rtc.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\rtc.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no vreg_ctr.c
vreg_ctr.c(110) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(119) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(128) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(138) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(142) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(149) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(159) : CC78K0R warning W0401: Conversion may lose significant digits
vreg_ctr.c(160) : CC78K0R warning W0401: Conversion may lose significant digits
vreg_ctr.c(162) : CC78K0R warning W0401: Conversion may lose significant digits
vreg_ctr.c(164) : CC78K0R warning W0401: Conversion may lose significant digits
vreg_ctr.c(165) : CC78K0R warning W0401: Conversion may lose significant digits
vreg_ctr.c(249) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(254) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(259) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(289) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(305) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_ctr.c(415) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
Compilation complete, 0 error(s) and 17 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\vreg_ctr.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no vreg_twl.c
vreg_twl.c(52) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
vreg_twl.c(61) : CC78K0R warning W0401: Conversion may lose significant digits
vreg_twl.c(65) : CC78K0R warning W0401: Conversion may lose significant digits
Compilation complete, 0 error(s) and 3 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\vreg_twl.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no adc.c
adc.c(124) : CC78K0R warning W0401: Conversion may lose significant digits
adc.c(130) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
adc.c(211) : CC78K0R warning W0401: Conversion may lose significant digits
adc.c(238) : CC78K0R warning W0401: Conversion may lose significant digits
adc.c(330) : CC78K0R warning W0401: Conversion may lose significant digits
adc.c(354) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
adc.c(373) : CC78K0R warning W0401: Conversion may lose significant digits
adc.c(452) : CC78K0R warning W0745: Expected function prototype
adc.c(476) : CC78K0R warning W0401: Conversion may lose significant digits
adc.c(481) : CC78K0R warning W0401: Conversion may lose significant digits
Compilation complete, 0 error(s) and 10 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\adc.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no renge\renge.c
renge\renge.c(149) : CC78K0R warning W0411: Illegal pointer combination
renge\renge.c(157) : CC78K0R warning W0412: Illegal pointer combination in conditional expression
Compilation complete, 0 error(s) and 2 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\renge.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no accero.c
accero.c(242) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
Compilation complete, 0 error(s) and 1 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\accero.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no self_flash.c
self_flash.c(219) : CC78K0R warning W0401: Conversion may lose significant digits
self_flash.c(259) : CC78K0R warning W0401: Conversion may lose significant digits
self_flash.c(260) : CC78K0R warning W0401: Conversion may lose significant digits
Compilation complete, 0 error(s) and 3 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\self_flash.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no sw.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\sw.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_debug.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\task_debug.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_misc.c
task_misc.c(91) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
task_misc.c(105) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
task_misc.c(207) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
task_misc.c(301) : CC78K0R warning W0401: Conversion may lose significant digits
Compilation complete, 0 error(s) and 4 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\task_misc.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_sys.c
task_sys.c(184) : CC78K0R warning W0401: Conversion may lose significant digits
task_sys.c(446) : CC78K0R warning W0401: Conversion may lose significant digits
task_sys.c(448) : CC78K0R warning W0510: Pointer mismatch in function 'renge_task_immed_add'
Compilation complete, 0 error(s) and 3 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\task_sys.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no pedo_alg_thre_det2.c
pedo_alg_thre_det2.c(58) : CC78K0R warning W0745: Expected function prototype
pedo_alg_thre_det2.c(73) : CC78K0R warning W0401: Conversion may lose significant digits
pedo_alg_thre_det2.c(140) : CC78K0R warning W0401: Conversion may lose significant digits
pedo_alg_thre_det2.c(153) : CC78K0R warning W0401: Conversion may lose significant digits
Compilation complete, 0 error(s) and 4 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\pedo_alg_thre_det2.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no ini_VECT.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\ini_VECT.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\bin\cc78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -irenge -i"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r" -ms -qvjl2w -sainter_asm -zpb -no task_status.c
Compilation complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\ra78k0r.exe" -c9F0104 -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff inter_asm\task_status.asm
Assembly complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\lk78k0r.exe" -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -obsr.lmf "..\..\..\Program Files\NEC Electronics Tools\CC78K0R\W2.10\lib78k0r\s0rm.rel" -gi10A84B295BE95C03D45Bh -pbsr_k0r.map -nkd -gb7EFFFFh -b"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\lib78k0r\fsl.lib" -bcl0rdm.lib -bcl0rm.lib -bcl0rmf.lib -i"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\lib78k0r" -dbsr_mcu.dr -s -w0 loader.rel pm.rel i2c_ctr.rel main.rel magic.rel WDT.rel i2c_mcu.rel i2c_twl.rel led.rel rtc.rel vreg_ctr.rel vreg_twl.rel adc.rel renge.rel accero.rel self_flash.rel sw.rel task_debug.rel task_misc.rel task_sys.rel pedo_alg_thre_det2.rel ini_VECT.rel task_status.rel
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\lk78k0r.exe" -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -obsr.lmf "..\..\..\Program Files\NEC Electronics Tools\CC78K0R\W2.10\lib78k0r\s0rm.rel" -go85h,0FC00h,1024 -gi10A84B295BE95C03D45Bh -pbsr_k0r.map -nkd -gb7EFFFFh -b"C:\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\lib78k0r\fsl.lib" -bcl0rdm.lib -bcl0rm.lib -bcl0rmf.lib -i"C:\Program Files\NEC Electronics Tools\CC78K0R\W2.10\lib78k0r" -dbsr_mcu.dr -s -w0 loader.rel pm.rel i2c_ctr.rel main.rel magic.rel WDT.rel i2c_mcu.rel i2c_twl.rel led.rel rtc.rel vreg_ctr.rel vreg_twl.rel adc.rel renge.rel accero.rel self_flash.rel sw.rel task_debug.rel task_misc.rel task_sys.rel pedo_alg_thre_det2.rel ini_VECT.rel task_status.rel
Link complete, 0 error(s) and 0 warning(s) found.
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\oc78k0r.exe" -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -o.\bsr.hex -ki -U0FFH -R bsr.lmf
Object Conversion Complete, 0 error(s) and 0 warning(s) found.
@ -180,4 +40,4 @@ intel-HEX to bsr bin converter
file converted!
Build Total error(s) : 0 Total warning(s) : 79
Build Total error(s) : 0 Total warning(s) : 23

View File

@ -78,10 +78,10 @@ Symbol Type=OFF
Language=C
Kanji=SJIS
[Source]
Geometry=136, 60, 803, 775
Geometry=27, 151, 757, 775
Window=Normal
DispStart=41
CaretPos=79,0
DispStart=95
CaretPos=138,0
Mode=Normal
DispFile=
Address1=
@ -140,18 +140,26 @@ SaveStart=
SaveEnd=
Accumulative=ON
[Source1]
Geometry=0, 0, 803, 775
Geometry=50, 50, 757, 775
Window=Normal
DispStart=344
CaretPos=389,16
DispStart=439
CaretPos=440,0
Mode=Normal
DispFile=pedo_alg_thre_det2.c
DispFile=adc.c
Accumulative=ON
[Source2]
Geometry=0, 0, 757, 775
Window=Normal
DispStart=95
CaretPos=148,0
Mode=Normal
DispFile=sw.c
Accumulative=ON
[Assemble]
Geometry=282, 92, 968, 626
Window=Normal
DispStart=3325
CaretPos=3325,27
Window=Hide
DispStart=864252928
CaretPos=0,0
Address1=
Address2=
Address3=
@ -822,7 +830,7 @@ L529=IICWL1
L530=IICWH1
L531=SVA1
[Local Variable]
Geometry=908, 407, 353, 335
Geometry=909, 497, 353, 199
Window=Normal
Boundary=11468964
Mode=Proper
@ -981,71 +989,73 @@ Count=0
Geometry=835, -4, 441, 502
Window=Normal
Boundary=18088086
0=.timeout_sleep,P,N,A,+,1
1=.going_to_sleep,P,N,A,+,1
2=.now_longhour,P,N,A,+,1
3=.TDR06,P,S,A,+,1
4=.LED_dim_status_sleep,.,N,A,+,1
5=.frame_sleep,P,N,A,+,1
6=.PM20,B,S,A,+,1
7=.P20,P,S,A,+,1
8=.pu20,B,S,A,+,1
9=.work_vr_vol,.,N,A,+,1
10=.vol_data_ctr_tmp,P,N,A,+,1
11=.vol_data_ctr,P,N,A,+,1
12=.last_modifyer,P,N,A,+,1
13=.sent_index,P,N,A,+,1
14=.vreg_ctr,P,N,A,+,1
15=.P1.5,P,S,A,+,1
16=.TDR07,P,S,A,+,1
17=.info_led_override,P,N,A,+,1
18=.system_status,.,N,A,+,1
19=.battery_manufacturer,P,N,A,+,1
20=.last_year,P,N,A,+,1
21=.last_month,P,N,A,+,1
22=.last_day,P,N,A,+,1
23=.last_hour,P,N,A,+,1
24=.now_min,P,N,A,+,1
25=.now_sec,P,N,A,+,1
Line=26
0=.vreg_ctr[9],P,N,A,+,1
1=.timeout_sleep,P,N,A,+,1
2=.going_to_sleep,P,N,A,+,1
3=.now_longhour,P,N,A,+,1
4=.TDR06,P,S,A,+,1
5=.LED_dim_status_sleep,.,N,A,+,1
6=.frame_sleep,P,N,A,+,1
7=.PM20,B,S,A,+,1
8=.P20,P,S,A,+,1
9=.pu20,B,S,A,+,1
10=.work_vr_vol,.,N,A,+,1
11=.vol_data_ctr_tmp,P,N,A,+,1
12=.vol_data_ctr,P,N,A,+,1
13=.last_modifyer,P,N,A,+,1
14=.sent_index,P,N,A,+,1
15=.vreg_ctr,P,N,A,+,1
16=.P1.5,P,S,A,+,1
17=.TDR07,P,S,A,+,1
18=.info_led_override,P,N,A,+,1
19=+system_status,.,N,A,-,1
20=.battery_manufacturer,P,N,A,+,1
21=.last_year,P,N,A,+,1
22=.last_month,P,N,A,+,1
23=.last_day,P,N,A,+,1
24=.last_hour,P,N,A,+,1
25=.now_min,P,N,A,+,1
26=.now_sec,P,N,A,+,1
27=.adc_raw_vol,P,N,A,+,1
28=.vol_data_ctr_tmp,P,N,A,+,1
29=.vol_data_ctr,P,N,A,+,1
30=.vol_old,P,N,A,+,1
31=.SW_HOME_n,P,N,A,+,1
Line=32
[Quick Watch]
0=pu6,P,A,1
1=frame_sleep,P,A,1
2=LED_dim_status_sleep,P,A,1
3=TDR06,P,A,1
4=now_longhour,P,A,1
5=going_to_sleep,P,A,1
6=timeout_sleep,P,A,1
7=info_led_override,P,A,1
8=TDR07,P,A,1
9=P1.5,P,A,1
10=last_year,P,A,1
11=last_month,P,A,1
12=last_day,P,A,1
13=last_hour,P,A,1
14=now_min,P,A,1
15=now_sec,P,A,1
0=info_led_override,P,A,1
1=TDR07,P,A,1
2=P1.5,P,A,1
3=last_year,P,A,1
4=last_month,P,A,1
5=last_day,P,A,1
6=last_hour,P,A,1
7=now_min,P,A,1
8=now_sec,P,A,1
9=vreg_ctr[ 9],P,A,1
10=vreg_ctr[9],P,A,1
11=vol_old,P,A,1
12=vol_data_ctr,P,A,1
13=vol_data_ctr_tmp,P,A,1
14=adc_raw_vol,P,A,1
15=SW_HOME_n,P,A,1
[Software Break]
Geometry=869, 649, 445, 260
Window=Normal
Width=150 30 200 100
Name0=Swb00002
Address0=i2c_ctr.c#_int_iic_ctr+0x57
Address0=adc.c#_adc_filter+0x9d
Window0=ASM
Status0=ON
Name1=Swb00001
Address1=sw.c#_tsk_sw+0x4c
Name1=Swb00003
Address1=adc.c#_adc_filter+0x84
Window1=ASM
Status1=ON
Name2=Swb00005
Address2=sw.c#_tsk_sw+0x65
Name2=Swb00004
Address2=sw.c#_tsk_sw+0xae
Window2=ASM
Status2=ON
Name3=Swb00003
Address3=sw.c#_tsk_sw+0x3a
Window3=ASM
Status3=ON
Count=4
Count=3
[Reset]
Debugger=ON
Symbol=OFF

View File

@ -756,6 +756,37 @@ ZF=0
S=1
E=0
CommandFile=0
[Options.LCNV78K0R 0]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.LCNV78K0R 1]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.LCNV78K0R 2]
Version=100
LCNV_GO=0
O0=inter_asm
E=0
CommandFile=0
[Options.LCNV78K0R 3]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.LCNV78K0R 4]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.LCNV78K0R 5]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.LK78K0R 0]
Version=100
O0=bsr_k0r.lmf
@ -840,7 +871,7 @@ G=1
E=0
E0=flash.elk
E1=a.elk
GO=0
GO=1
GOValue=85
GOStart=FC00
GOSizeValue=1024
@ -1007,37 +1038,6 @@ ZB=
Etcetera0=
Etcetera1=boot.lmf
CommandFile=0
[Options.LCNV78K0R 0]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.LCNV78K0R 1]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.LCNV78K0R 2]
Version=100
LCNV_GO=0
O0=inter_asm
E=0
CommandFile=0
[Options.LCNV78K0R 3]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.LCNV78K0R 4]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.LCNV78K0R 5]
Version=100
LCNV_GO=0
E=0
CommandFile=0
[Options.78K0R]
BuildMode=2
BuildMode2=K0R_dbg

View File

@ -1,19 +1,23 @@
[ProjectManager]
FrameMax=1
FrameX=152
FrameY=55
FrameX=267
FrameY=20
FrameCX=1299
FrameCY=1044
OpenFile1=ProjectWindow
PrjPos=0,2,754,3,253
OpenFile2=task_sys.c,0,220,220,1464,977,0,137,31,0
OpenFile3=task_misc.c,0,198,198,1166,823,48,91,48,0
OpenFile4=vreg_ctr.c,0,367,300,1611,1057,8,109,28,0
OpenFile5=pedo_alg_thre_det2.c,0,220,220,1188,845,0,434,0,0
OpenFile6=adc.c,0,264,264,1508,1021,9,226,9,0
OpenFile7=OutputWindow
OpenFile3=vreg_ctr.c,0,367,300,1611,1057,8,109,28,0
OpenFile4=pedo_alg_thre_det2.c,0,220,220,1188,845,0,434,0,0
OpenFile5=pm.h,0,242,242,1486,999,0,119,4,0
OpenFile6=pm.c,0,335,300,1579,1057,42,630,42,0
OpenFile7=adc.c,0,264,264,1508,1021,0,423,5,0
OpenFile8=accero.c,0,264,264,1243,901,0,160,0,0
OpenFile9=task_debug.c,0,363,341,1342,978,30,26,42,0
OpenFile10=task_misc.c,0,184,129,1152,754,0,275,0,0
OpenFile11=OutputWindow
OutputPos=0,21,966,690,1552
OpenFile8=config.h,0,88,228,1332,985,28,17,0,0
OpenFile12=config.h,0,88,228,1332,985,18,42,18,0
ActivePRJ=yav_mcu_bsr.prj
[ProjectWindow]
ProjectWindowDispType=0

View File

@ -1,7 +1,7 @@
[SdbInfo]
Ver=5
[loader.c]
T=4c3d4c95
T=4c3fc60e
1=incs_loader.h
2=..\..\..\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r\fsl.h
3=fsl_user.h
@ -12,7 +12,7 @@ T=4c3d4c95
8=reboot.h
9=magic.h
[pm.c]
T=4c3d87c0
T=4c465d07
1=incs.h
2=adc.h
3=led.h
@ -36,7 +36,7 @@ T=4c3c0229
7=adc.h
8=pool.h
[magic.c]
T=4c3ecca8
T=4c4e9b2a
1=config.h
[WDT.c]
T=4bf0d1e1
@ -52,14 +52,14 @@ T=4c29c700
3=i2c_twl_defs.h
4=i2c_twl.h
[led.c]
T=4c3ec648
T=4c3ecd56
1=incs.h
2=led.h
[rtc.c]
T=4c3db81b
1=incs.h
[vreg_ctr.c]
T=4c3e964e
T=4c3fc4a7
1=incs.h
2=vreg_ctr.h
3=rtc.h
@ -70,14 +70,14 @@ T=4c3e964e
8=..\..\..\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r\fsl.h
9=fsl_user.h
[vreg_twl.c]
T=4c3af447
T=4c465cb6
1=incs.h
2=jhl_defs.h
3=led.h
4=vreg_twl.h
5=vreg_ctr.h
[adc.c]
T=4c3dadd9
T=4c48ff0b
1=incs.h
2=adc.h
3=pm.h
@ -98,7 +98,7 @@ T=4c3d767c
2=incs.h
3=..\..\..\Program Files\NEC Electronics Tools\CC78K0R\W2.10\inc78k0r\math.h
[self_flash.c]
T=4c3d4266
T=4c3f9f78
1=incs_loader.h
2=..\..\..\Program Files\NEC Electronics Tools\FSL78K0R_Type02ES\V1.20\inc78k0r\fsl.h
3=fsl_user.h
@ -116,12 +116,13 @@ T=4c3ec9e4
6=rtc.h
7=sw.h
[task_debug.c]
T=4c3d42f7
1=incs.h
T=4c4698f9
1=incs_loader.h
2=renge\renge.h
3=pm.h
4=accero.h
[task_misc.c]
T=4c3c5c5b
T=4c4e424f
1=incs.h
2=renge\renge.h
3=pm.h
@ -142,7 +143,7 @@ T=4c3ea0de
9=adc.h
10=self_flash.h
[pedo_alg_thre_det2.c]
T=4c3da657
T=4c3fdc7e
1=incs.h
2=..\..\..\Program Files\NEC Electronics Tools\CC78K0R\W2.10\inc78k0r\math.h
3=accero.h
@ -175,7 +176,7 @@ T=4c119cde
T=4c075832
1=config.h
[config.h]
T=4c3eccb0
T=4c4ea335
[user_define.h]
T=4c3d838c
[bsr_system.h]
@ -205,7 +206,7 @@ T=4bf0d1e0
[i2c_ctr.h]
T=4bf0d1e1
[pm.h]
T=4c3d838c
T=4c465cfd
[rtc.h]
T=4bf0d1e1
[reboot.h]