mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
■0.20
・勝手に加速度センサをonにしていた (スリープに入ろうとすると画面がついたり消えたりするのを対策) ・動作中にバッテリ抜けで電源offさせるようにした。それに伴い強制オフさせるタスクを移動 ・初期値が充電許可になっていた。不許可に変更 ・タスクが詰まってWDTリセットしていたのかもしれないので、それの対策 (何もしていないのにホームボタンメニューの開く音がしてランチャー画面に戻るのを対策したつもり) ・アダプタ接続時、満充電であろうと数秒充電ランプを点灯させる ・きちんとバッテリ判定をし、パラメータを送ってから充電を開始するように修正 ・電源off,アダプタ取り外し時、バッテリ電圧が落ち着くのを待って(ただのタイマー)からMGICをスリープに入れるよう変更 ・フリーレジスタのサイズを誤っていた。176→200bytes ・RTCの初期値を2010元旦、午前零時に。 git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@187 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
e57a1135eb
commit
21e0eab546
18
trunk/adc.c
18
trunk/adc.c
@ -180,6 +180,9 @@ void tsk_adc( )
|
|||||||
force_update_vol = 10;
|
force_update_vol = 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// バッテリ識別 ///////////////////////////
|
||||||
|
/* 呼ばれません */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,11 +280,6 @@ case ( ADC_SEL_AMB_BRIT ): //
|
|||||||
#else
|
#else
|
||||||
adc_raw_vol = getmean3( hist_snd_vol );
|
adc_raw_vol = getmean3( hist_snd_vol );
|
||||||
#endif
|
#endif
|
||||||
if( adc_raw_vol == 0 )
|
|
||||||
{
|
|
||||||
NOP();
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ( ADC_SEL_BATT_TEMP ):
|
case ( ADC_SEL_BATT_TEMP ):
|
||||||
@ -296,15 +294,15 @@ case ( ADC_SEL_AMB_BRIT ): //
|
|||||||
renge_task_immed_add( BT_temp_update );
|
renge_task_immed_add( BT_temp_update );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
/* 呼ばれません
|
||||||
case ( ADC_SEL_BATT_DET ):
|
case ( ADC_SEL_BATT_DET ):
|
||||||
// 呼ばれない
|
|
||||||
break;
|
break;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
// もっとまともな書き方がありそうだ
|
// もっとまともな書き方がありそうだ
|
||||||
if( ADS < ADC_SEL_BATT_TEMP )
|
if( ADS < ADC_SEL_BATT_DET )
|
||||||
{ // 電池は常時監視しないつもり
|
{
|
||||||
ADS += 1; // 次のチャンネル
|
ADS += 1; // 次のチャンネル
|
||||||
ADIF = 0; // ←これをしないと、いっこ前のチャンネルのデータの完了で直後に割り込む可能性がある
|
ADIF = 0; // ←これをしないと、いっこ前のチャンネルのデータの完了で直後に割り込む可能性がある
|
||||||
}
|
}
|
||||||
@ -312,7 +310,7 @@ case ( ADC_SEL_AMB_BRIT ): //
|
|||||||
{
|
{
|
||||||
ADCEN = 0; // 止めてしまう
|
ADCEN = 0; // 止めてしまう
|
||||||
adc_updated = 1;
|
adc_updated = 1;
|
||||||
index = ( index == 2 ) ? 0 : ( index + 1 );
|
index = ( index == 2 ) ? 0 : ( index + 1 ); // ノイズ取りの配列インデックス
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -45,6 +45,7 @@ typedef struct
|
|||||||
unsigned char reboot:1;
|
unsigned char reboot:1;
|
||||||
unsigned char info_fullcolor:1;
|
unsigned char info_fullcolor:1;
|
||||||
enum model_ model;
|
enum model_ model;
|
||||||
|
unsigned short cnt_force_off;
|
||||||
}
|
}
|
||||||
system_status_;
|
system_status_;
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
//#define _FORCE_INFO_LED_FULLCOLOR_
|
//#define _FORCE_INFO_LED_FULLCOLOR_
|
||||||
|
|
||||||
#define MCU_VER_MAJOR 0x00
|
#define MCU_VER_MAJOR 0x00
|
||||||
#define MCU_VER_MINOR 0x19
|
#define MCU_VER_MINOR 0x20
|
||||||
|
|
||||||
//#define PM_CCIC_TIM
|
//#define PM_CCIC_TIM
|
||||||
|
|
||||||
|
|||||||
@ -237,7 +237,7 @@ void hdwinit2( )
|
|||||||
|
|
||||||
P1 = 0b11000000;
|
P1 = 0b11000000;
|
||||||
P2 = 0b00000000;
|
P2 = 0b00000000;
|
||||||
P4 = 0b00000000;
|
P4 = 0b00001000;
|
||||||
P5 = 0b00000000;
|
P5 = 0b00000000;
|
||||||
P6 = 0b00000000;
|
P6 = 0b00000000;
|
||||||
P7 = 0b01000000;
|
P7 = 0b01000000;
|
||||||
|
|||||||
@ -73,12 +73,6 @@ void main_loop( void )
|
|||||||
{ // システムtick、または割り込みで廻ります。
|
{ // システムtick、または割り込みで廻ります。
|
||||||
WDT_Restart( );
|
WDT_Restart( );
|
||||||
renge_task_interval_run( ); // 内部で、システムtickまたは強制起動します
|
renge_task_interval_run( ); // 内部で、システムtickまたは強制起動します
|
||||||
while( renge_task_interval_run_force != 0 )
|
|
||||||
{
|
|
||||||
renge_task_interval_run( );
|
|
||||||
}
|
|
||||||
WDT_Restart( );
|
|
||||||
while( renge_task_immed_run( ) != ERR_SUCCESS ); // ここのループが廻る度に実行されます
|
|
||||||
HALT( );
|
HALT( );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -425,6 +425,7 @@ u16 get_long_hour()
|
|||||||
u8 day_hex;
|
u8 day_hex;
|
||||||
u8 hour_hex;
|
u8 hour_hex;
|
||||||
|
|
||||||
|
// RWAIT = 1 を確認してから↓に進んで下さい
|
||||||
year_hex = bcdtob( YEAR );
|
year_hex = bcdtob( YEAR );
|
||||||
month_hex = bcdtob( MONTH );
|
month_hex = bcdtob( MONTH );
|
||||||
day_hex = bcdtob( DAY );
|
day_hex = bcdtob( DAY );
|
||||||
|
|||||||
173
trunk/pm.c
173
trunk/pm.c
@ -20,15 +20,12 @@
|
|||||||
|
|
||||||
|
|
||||||
// ========================================================
|
// ========================================================
|
||||||
u8 raw_adc_temperature;
|
u8 raw_adc_temperature;
|
||||||
|
|
||||||
BT_VENDER battery_manufacturer = BT_VENDER_NOT_CHECKED;
|
BT_VENDER battery_manufacturer = BT_VENDER_NOT_CHECKED;
|
||||||
|
st_bt_comp bt_comp; // バッテリパラメータ構造体
|
||||||
st_bt_comp bt_comp;
|
|
||||||
|
|
||||||
u8 reg_shadow; // NTR PMIC レジスタミラー
|
u8 reg_shadow; // NTR PMIC レジスタミラー
|
||||||
|
bit bt_chg_ready; // バッテリパラメータ送信済。充電開始許可
|
||||||
|
u8 chg_led_override; // アダプタ差したとき、充電するしないに関わらずしばらく点灯させる
|
||||||
|
|
||||||
|
|
||||||
// ========================================================
|
// ========================================================
|
||||||
@ -386,7 +383,8 @@ err PM_sys_pow_off( )
|
|||||||
=========================================================*/
|
=========================================================*/
|
||||||
__interrupt void intp4_extdc( )
|
__interrupt void intp4_extdc( )
|
||||||
{
|
{
|
||||||
;
|
// chg_led_override = (u8)( 1000 / INTERVAL_TSK_BATT / SYS_INTERVAL_TICK );
|
||||||
|
chg_led_override = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -594,7 +592,7 @@ task_status_immed tski_PM_BL_set()
|
|||||||
void tsk_batt( )
|
void tsk_batt( )
|
||||||
{
|
{
|
||||||
static u8 task_interval = 0;
|
static u8 task_interval = 0;
|
||||||
static u8 temp_zone_charge_enable = 0; // 温度で充電停止する時にヒステリシスを付けるため
|
static bit temp_zone_charge_enable; // 温度で充電停止する時にヒステリシスを付けるため
|
||||||
static bit pm_extdc_old;
|
static bit pm_extdc_old;
|
||||||
|
|
||||||
if( task_interval-- != 0 )
|
if( task_interval-- != 0 )
|
||||||
@ -607,7 +605,7 @@ void tsk_batt( )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// アダプタ? /////////////////////
|
// アダプタステータス更新 /////////
|
||||||
if( pm_extdc_old != !PM_EXTDC_n )
|
if( pm_extdc_old != !PM_EXTDC_n )
|
||||||
{
|
{
|
||||||
pm_extdc_old = !PM_EXTDC_n;
|
pm_extdc_old = !PM_EXTDC_n;
|
||||||
@ -615,6 +613,7 @@ void tsk_batt( )
|
|||||||
{
|
{
|
||||||
set_bit( 1, vreg_ctr[VREG_C_STATUS], REG_BIT_POW_SUPPLY );
|
set_bit( 1, vreg_ctr[VREG_C_STATUS], REG_BIT_POW_SUPPLY );
|
||||||
set_irq( VREG_C_IRQ1, REG_BIT_BT_DC_CONNECT );
|
set_irq( VREG_C_IRQ1, REG_BIT_BT_DC_CONNECT );
|
||||||
|
chg_led_override = (u8)( 1000 / INTERVAL_TSK_BATT / SYS_INTERVAL_TICK );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -642,8 +641,7 @@ void tsk_batt( )
|
|||||||
|
|
||||||
#ifndef _MODEL_WM0_
|
#ifndef _MODEL_WM0_
|
||||||
// WM0ではCHG_ENABLEピンは /WL_RST に配線されており、充電制御しない
|
// WM0ではCHG_ENABLEピンは /WL_RST に配線されており、充電制御しない
|
||||||
if(( temp_zone_charge_enable == 1 ) &&
|
if( temp_zone_charge_enable && bt_chg_ready )
|
||||||
( battery_manufacturer < BT_VENDER_OPEN ))
|
|
||||||
{
|
{
|
||||||
BT_CHG_ENABLE(); // 温度範囲OKで充電再開
|
BT_CHG_ENABLE(); // 温度範囲OKで充電再開
|
||||||
}
|
}
|
||||||
@ -667,6 +665,12 @@ void tsk_batt( )
|
|||||||
LED_CHARGE = 0;
|
LED_CHARGE = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( chg_led_override != 0 ){ // 気がつく人いるかな…?
|
||||||
|
chg_led_override -= 1;
|
||||||
|
LED_CHARGE = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 電池残量 //
|
// 電池残量 //
|
||||||
if( system_status.pwr_state == ON )
|
if( system_status.pwr_state == ON )
|
||||||
{
|
{
|
||||||
@ -704,9 +708,9 @@ void BT_chk( )
|
|||||||
}chars;
|
}chars;
|
||||||
}dat_16;
|
}dat_16;
|
||||||
|
|
||||||
BT_DET_P = 1; // チャージに時間が掛かるので、先に上げておく
|
BT_DET_P = 1;
|
||||||
BT_TEMP_P = 1;
|
BT_TEMP_P = 1;
|
||||||
wait_ms(1);
|
wait_ms(1); // チャージに時間が掛かる
|
||||||
|
|
||||||
{
|
{
|
||||||
BT_VENDER battery_manufacturer_old = battery_manufacturer;
|
BT_VENDER battery_manufacturer_old = battery_manufacturer;
|
||||||
@ -733,16 +737,26 @@ void BT_chk( )
|
|||||||
|
|
||||||
if( battery_manufacturer != battery_manufacturer_old )
|
if( battery_manufacturer != battery_manufacturer_old )
|
||||||
{
|
{
|
||||||
// バッテリが変わった //
|
if( battery_manufacturer < BT_VENDER_OPEN )
|
||||||
bt_comp = BT_COMP[ battery_manufacturer ]; // バッテリパラメータ変更
|
{
|
||||||
|
// バッテリが変わった //
|
||||||
|
bt_comp = BT_COMP[ battery_manufacturer ]; // バッテリパラメータ変更
|
||||||
|
|
||||||
wait_ms( 10 );
|
wait_ms( 10 );
|
||||||
// 0. バッテリ残量IC クイックスタート
|
// 0. バッテリ残量IC クイックスタート
|
||||||
dat_16._u16 = swap_endian_16( 0x4000 ); // quick start
|
dat_16._u16 = swap_endian_16( 0x4000 ); // quick start
|
||||||
iic_mcu_write( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_MODE, 2, &dat_16 );
|
iic_mcu_write( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_MODE, 2, &dat_16 );
|
||||||
|
|
||||||
|
bt_chg_ready = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// 電池が外された
|
||||||
|
bt_chg_ready = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 電池温度監視スタート
|
// 電池温度監視スタート
|
||||||
renge_task_immed_add( BT_temp_update );
|
renge_task_immed_add( BT_temp_update );
|
||||||
}
|
}
|
||||||
@ -778,7 +792,7 @@ void BT_init( )
|
|||||||
// 電池温度測定(TS,白箱判定も兼ねる) //
|
// 電池温度測定(TS,白箱判定も兼ねる) //
|
||||||
raw_adc_temperature = get_adc( ADC_SEL_BATT_TEMP );
|
raw_adc_temperature = get_adc( ADC_SEL_BATT_TEMP );
|
||||||
|
|
||||||
|
|
||||||
// 1. ロック解除
|
// 1. ロック解除
|
||||||
dat_16._u16 = swap_endian_16( 0x4A57 ); // unlock key
|
dat_16._u16 = swap_endian_16( 0x4A57 ); // unlock key
|
||||||
if( iic_mcu_write( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_LOCK, 2, &dat_16 ) == ERR_SUCCESS )
|
if( iic_mcu_write( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_LOCK, 2, &dat_16 ) == ERR_SUCCESS )
|
||||||
@ -943,92 +957,97 @@ task_status_immed BT_temp_update( )
|
|||||||
BT_init()が実行されている必要があります。
|
BT_init()が実行されている必要があります。
|
||||||
**********************************************************/
|
**********************************************************/
|
||||||
void BT_get_left(){
|
void BT_get_left(){
|
||||||
static u8 bt_left_state; // バッテリ残量で割り込みのため
|
|
||||||
static u8 bt_voltage_low_count; // 電圧でシャットダウンさせる
|
|
||||||
u8 temp[2];
|
u8 temp[2];
|
||||||
|
|
||||||
|
// 電池残量更新 //
|
||||||
if( system_status.model == MODEL_TS_BOARD )
|
if( system_status.model == MODEL_TS_BOARD )
|
||||||
{
|
{
|
||||||
vreg_ctr[ VREG_C_BT_REMAIN ] = 99;
|
vreg_ctr[ VREG_C_BT_REMAIN ] = 99;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// 電池電圧で強制断が優先される
|
if(( vreg_ctr[ VREG_C_STATUS_1 ] & REG_BIT_GASGAUGE_ERR ) == 0 )
|
||||||
temp[0] = iic_mcu_read_a_byte( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_VCELL );
|
|
||||||
if( iic_mcu_bus_status == ERR_SUCCESS )
|
|
||||||
{
|
{
|
||||||
vreg_ctr[ VREG_C_BT_VOLTAGE ] = temp[0];
|
temp[0] = iic_mcu_read_a_byte( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_VCELL );
|
||||||
if( vreg_ctr[ VREG_C_BT_VOLTAGE ] > ( 3100 / 16 / 1.25 ) )
|
if( iic_mcu_bus_status != ERR_SUCCESS )
|
||||||
{
|
{
|
||||||
bt_voltage_low_count = 0;
|
// バッテリ残量が取れなくなった
|
||||||
iic_mcu_read( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_SOC, 2, temp );
|
vreg_ctr[ VREG_C_STATUS_1 ] |= REG_BIT_GASGAUGE_ERR;
|
||||||
vreg_ctr[ VREG_C_BT_REMAIN ] = temp[0];
|
bt_chg_ready = 0;
|
||||||
vreg_ctr[ VREG_C_BT_REMAIN_FINE ] = temp[1];
|
vreg_ctr[ VREG_C_BT_REMAIN ] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bt_voltage_low_count += 1;
|
if( temp[0] < ( 3100 / 16 / 1.25 ) )
|
||||||
if( bt_voltage_low_count >= 4* 10 )
|
|
||||||
{
|
{
|
||||||
|
// 電圧が規定値になってしまったので強制off
|
||||||
vreg_ctr[ VREG_C_BT_REMAIN ] = 0;
|
vreg_ctr[ VREG_C_BT_REMAIN ] = 0;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
if( bt_voltage_low_count == 4* 10 ) // およそ10sec(そんなに頻繁には更新されないみたい)
|
|
||||||
{
|
{
|
||||||
set_irq( VREG_C_IRQ1, REG_BIT_BT_REMAIN );
|
// 電圧はまだ大丈夫、電池残量ICとの通信もOK
|
||||||
}
|
vreg_ctr[ VREG_C_BT_VOLTAGE ] = temp[0];
|
||||||
else if( bt_voltage_low_count == 12 + 4* ( 10 + 6 ))
|
iic_mcu_read( IIC_SLA_BT_GAUGE, BT_GAUGE_REG_SOC, 2, temp );
|
||||||
{ // …時間切れ。強制的に切る
|
vreg_ctr[ VREG_C_BT_REMAIN ] = temp[0];
|
||||||
system_status.pwr_state = OFF_TRIG;
|
vreg_ctr[ VREG_C_BT_REMAIN_FINE ] = temp[1];
|
||||||
renge_task_interval_run_force = 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
// もう特に何もすること無いと思う...
|
||||||
{
|
|
||||||
// バッテリ残量が取れなくなった!
|
|
||||||
vreg_ctr[ VREG_C_STATUS_1 ] |= REG_BIT_GASGAUGE_ERR;
|
|
||||||
if( vreg_ctr[ VREG_C_BT_REMAIN ] != 0 )
|
|
||||||
{
|
|
||||||
vreg_ctr[ VREG_C_BT_REMAIN ] = 0;
|
|
||||||
set_irq( VREG_C_IRQ1, REG_BIT_BT_REMAIN );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 残量で割り込み
|
|
||||||
switch( bt_left_state )
|
// 残量で割り込み。急激に減ると飛ぶことがある //
|
||||||
{
|
{
|
||||||
case( 0 ): // 前回、バッテリーは十分にあった
|
static u8 bt_remain_old;
|
||||||
if( vreg_ctr[ VREG_C_BT_REMAIN ] <= BATT_TH_LO )
|
|
||||||
|
if( (( vreg_ctr[ VREG_C_BT_REMAIN ] <= BATT_TH_LO ) && ( BATT_TH_LO < bt_remain_old ))||
|
||||||
|
(( vreg_ctr[ VREG_C_BT_REMAIN ] <= BATT_TH_EMPTY ) && ( BATT_TH_EMPTY < bt_remain_old ))||
|
||||||
|
(( vreg_ctr[ VREG_C_BT_REMAIN ] == 0 ) && ( bt_remain_old != 0 )) )
|
||||||
{
|
{
|
||||||
bt_left_state = 1; // 突然バッテリ残量が減っても、Lo割り込みを入れる
|
|
||||||
set_irq( VREG_C_IRQ1, REG_BIT_BT_REMAIN );
|
set_irq( VREG_C_IRQ1, REG_BIT_BT_REMAIN );
|
||||||
}
|
}
|
||||||
break;
|
if(( vreg_ctr[ VREG_C_BT_REMAIN ] == 0 ) && ( bt_remain_old != 0 ))
|
||||||
|
|
||||||
case( 1 ):
|
|
||||||
if( vreg_ctr[ VREG_C_BT_REMAIN ] <= BATT_TH_EMPTY )
|
|
||||||
{
|
{
|
||||||
bt_left_state = 2;
|
system_status.cnt_force_off = 1; // 強制電源断フラグ
|
||||||
set_irq( VREG_C_IRQ1, REG_BIT_BT_REMAIN );
|
|
||||||
}
|
}
|
||||||
else if( vreg_ctr[ VREG_C_BT_REMAIN ] > BATT_TH_LO )
|
bt_remain_old = vreg_ctr[ VREG_C_BT_REMAIN ];
|
||||||
{
|
|
||||||
bt_left_state = 0;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
if( vreg_ctr[ VREG_C_BT_REMAIN ] > BATT_TH_EMPTY )
|
|
||||||
{
|
|
||||||
bt_left_state = 1;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// PMIC-NTRに電池残量を教えてあげる
|
// PMIC-NTRに電池残量を教えてあげる
|
||||||
iic_mcu_write_a_byte( IIC_SLA_CODEC, CODEC_REG_BT,
|
iic_mcu_write_a_byte( IIC_SLA_CODEC, CODEC_REG_BT,
|
||||||
( vreg_ctr[ VREG_C_BT_REMAIN ] <= BATT_TH_LO )? 1 : 0 ); // 1で電池切れ
|
( vreg_ctr[ VREG_C_BT_REMAIN ] <= BATT_TH_LO )? 1 : 0 ); // 1で電池切れ
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static unsigned long bt_relax_timer;
|
||||||
|
//#define BT_RELAX_TIME_MIN (unsigned long)30
|
||||||
|
#define BT_RELAX_TIME_MIN (unsigned long)1
|
||||||
|
|
||||||
|
/**********************************************************
|
||||||
|
電池がリラックスするのを待つ
|
||||||
|
・PM_sys_power_offの時
|
||||||
|
・充電中にアダプタが抜かれたとき
|
||||||
|
**********************************************************/
|
||||||
|
void BT_set_relax_timer()
|
||||||
|
{
|
||||||
|
// RTCを使うと楽かと思ったがそうでもなかった
|
||||||
|
bt_relax_timer = (unsigned long)( BT_RELAX_TIME_MIN * 60 * 1000 / 2 );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
u8 BT_is_relaxed()
|
||||||
|
{
|
||||||
|
if( bt_relax_timer != 0 )
|
||||||
|
{
|
||||||
|
bt_relax_timer -= 1;
|
||||||
|
return( 0 );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return( 1 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -132,6 +132,9 @@ void BT_chk();
|
|||||||
void BT_init();
|
void BT_init();
|
||||||
void BT_get_left();
|
void BT_get_left();
|
||||||
|
|
||||||
|
void BT_set_relax_timer();
|
||||||
|
u8 BT_is_relaxed();
|
||||||
|
|
||||||
|
|
||||||
task_status_immed BT_temp_update( );
|
task_status_immed BT_temp_update( );
|
||||||
task_status_immed tski_vcom_set( );
|
task_status_immed tski_vcom_set( );
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#include "pedometer.h"
|
#include "pedometer.h"
|
||||||
|
|
||||||
#define VREG_C_FREE_SIZE 176
|
#define VREG_C_FREE_SIZE 200
|
||||||
|
|
||||||
// 空いてるメモリ
|
// 空いてるメモリ
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
@ -82,8 +82,8 @@ err renge_task_interval_run(){
|
|||||||
|
|
||||||
// インターバル起動
|
// インターバル起動
|
||||||
DI();
|
DI();
|
||||||
if(( renge_flg_interval != 0 )
|
if(( renge_flg_interval != 0 ) ||
|
||||||
|| ( renge_task_interval_run_force != 0 )) // todo “<><E2809C>‡
|
( renge_task_interval_run_force != 0 )) // todo “<><E2809C>‡
|
||||||
{
|
{
|
||||||
renge_task_interval_run_force = 0;
|
renge_task_interval_run_force = 0;
|
||||||
if( renge_flg_interval != 0 )
|
if( renge_flg_interval != 0 )
|
||||||
@ -93,14 +93,14 @@ err renge_task_interval_run(){
|
|||||||
EI();
|
EI();
|
||||||
for( i = 0; i != TSK_LAST; i += 1 )
|
for( i = 0; i != TSK_LAST; i += 1 )
|
||||||
{
|
{
|
||||||
DBG_LED_on;
|
DBG_LED_on;
|
||||||
tasks[ i ]();
|
tasks[ i ]();
|
||||||
DBG_LED_off;
|
DBG_LED_off;
|
||||||
// 逐次起動タスクがあったら起動しておく
|
// 逐次起動タスクがあったら起動しておく
|
||||||
renge_task_immed_run();
|
renge_task_immed_run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EI();
|
EI();
|
||||||
return( ERR_SUCCESS );
|
return( ERR_SUCCESS );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,7 +176,8 @@ err renge_task_immed_add( task_status* new_task ){
|
|||||||
err renge_task_immed_run(){
|
err renge_task_immed_run(){
|
||||||
u8 list_id;
|
u8 list_id;
|
||||||
|
|
||||||
while( tasks_immed[ 0 ] != TSK_IMM_EMPTY_ )
|
// while( tasks_immed[ 0 ] != TSK_IMM_EMPTY_ )
|
||||||
|
if( tasks_immed[ 0 ] != TSK_IMM_EMPTY_ )
|
||||||
{
|
{
|
||||||
DI();
|
DI();
|
||||||
for( list_id = 0; list_id < TASK_IMMED_RUN_LIST_MAX; list_id += 1 ){
|
for( list_id = 0; list_id < TASK_IMMED_RUN_LIST_MAX; list_id += 1 ){
|
||||||
@ -266,6 +267,7 @@ err renge_task_immed_run(){
|
|||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
imm_list_sort_fin:
|
imm_list_sort_fin:
|
||||||
// ここまでで完全に前詰めされている
|
// ここまでで完全に前詰めされている
|
||||||
@ -293,7 +295,7 @@ imm_list_sort_fin:
|
|||||||
#else
|
#else
|
||||||
NOP(); // リンカが怒る
|
NOP(); // リンカが怒る
|
||||||
#endif
|
#endif
|
||||||
}
|
// }
|
||||||
return( ERR_SUCCESS );
|
return( ERR_SUCCESS );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
10
trunk/rtc.c
10
trunk/rtc.c
@ -31,13 +31,13 @@ void RTC_init( void )
|
|||||||
RTCC1 = 0b11000000; /* アラーム割り込み有効&動作開始 */
|
RTCC1 = 0b11000000; /* アラーム割り込み有効&動作開始 */
|
||||||
RTCC2 = 0b10000000; /* インターバル:32k/2^6=2ms、RTCDIV出力なし */
|
RTCC2 = 0b10000000; /* インターバル:32k/2^6=2ms、RTCDIV出力なし */
|
||||||
|
|
||||||
SEC = 0x00;
|
HOUR = 0x00;
|
||||||
MIN = 0x00;
|
MIN = 0x00;
|
||||||
HOUR = 0x15;
|
SEC = 0x00;
|
||||||
|
MONTH = 0x01;
|
||||||
DAY = 0x01;
|
DAY = 0x01;
|
||||||
WEEK = 0x00;
|
WEEK = 0x05; // Fri
|
||||||
MONTH = 0x11;
|
YEAR = 0x10;
|
||||||
YEAR = 0x09;
|
|
||||||
|
|
||||||
ALARMWW = 0x7F;
|
ALARMWW = 0x7F;
|
||||||
|
|
||||||
|
|||||||
16
trunk/sw.c
16
trunk/sw.c
@ -80,13 +80,11 @@ bit SW_HOME_n;
|
|||||||
======================================================== */
|
======================================================== */
|
||||||
void tsk_sw( )
|
void tsk_sw( )
|
||||||
{
|
{
|
||||||
static u16 cnt_force_off = 0;
|
|
||||||
static u8 task_interval = 0;
|
static u8 task_interval = 0;
|
||||||
|
|
||||||
switch ( system_status.pwr_state )
|
switch ( system_status.pwr_state )
|
||||||
{
|
{
|
||||||
case ( ON_TRIG ):
|
case ( ON_TRIG ):
|
||||||
cnt_force_off = 0;
|
|
||||||
SW_pow_count = 0;
|
SW_pow_count = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -122,21 +120,9 @@ void tsk_sw( )
|
|||||||
#else
|
#else
|
||||||
set_irq( VREG_C_IRQ0, REG_BIT_SW_HOME_HOLD );
|
set_irq( VREG_C_IRQ0, REG_BIT_SW_HOME_HOLD );
|
||||||
#endif
|
#endif
|
||||||
cnt_force_off = 1;
|
system_status.cnt_force_off = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( cnt_force_off != 0 )
|
|
||||||
{
|
|
||||||
cnt_force_off += 1;
|
|
||||||
if( cnt_force_off >= ( vreg_ctr[ VREG_C_OFF_DELAY ] * 8 ) )
|
|
||||||
{
|
|
||||||
// タイムアウトによる強制OFF
|
|
||||||
cnt_force_off = 0;
|
|
||||||
// vreg_ctr[ VREG_C_LED_POW ] = LED_POW_ILM_ONLY_RED;
|
|
||||||
system_status.pwr_state = OFF_TRIG;
|
|
||||||
renge_task_interval_run_force = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
count_sw_n( SW_POW_n, SW_pow_count, SW_pow_mask ); // ボタン押し時間のカウント
|
count_sw_n( SW_POW_n, SW_pow_count, SW_pow_mask ); // ボタン押し時間のカウント
|
||||||
|
|
||||||
#ifdef _SW_HOME_ENABLE_
|
#ifdef _SW_HOME_ENABLE_
|
||||||
|
|||||||
@ -44,7 +44,6 @@ void tsk_debug2( )
|
|||||||
{
|
{
|
||||||
u8 str[4];
|
u8 str[4];
|
||||||
|
|
||||||
|
|
||||||
if( ( system_status.pwr_state == ON ) || ( system_status.pwr_state == SLEEP ) )
|
if( ( system_status.pwr_state == ON ) || ( system_status.pwr_state == SLEEP ) )
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -52,11 +51,12 @@ void tsk_debug2( )
|
|||||||
str[2] = vreg_ctr[ VREG_C_FREE1 ];
|
str[2] = vreg_ctr[ VREG_C_FREE1 ];
|
||||||
str[1] = vreg_ctr[ VREG_C_STATUS ];
|
str[1] = vreg_ctr[ VREG_C_STATUS ];
|
||||||
str[0] = vreg_ctr[ VREG_C_RTC_SEC ];
|
str[0] = vreg_ctr[ VREG_C_RTC_SEC ];
|
||||||
*/
|
|
||||||
str[3] = vreg_ctr[ VREG_C_SND_VOL ];
|
str[3] = vreg_ctr[ VREG_C_SND_VOL ];
|
||||||
str[2] = vreg_ctr[ VREG_C_TUNE ];
|
str[2] = vreg_ctr[ VREG_C_TUNE ];
|
||||||
str[1] = vreg_ctr[ VREG_C_ACC_CONFIG ];
|
str[1] = vreg_ctr[ VREG_C_ACC_CONFIG ];
|
||||||
str[0] = SEC;
|
str[0] = SEC;
|
||||||
|
*/
|
||||||
|
|
||||||
// iic_mcu_write_a_byte( IIC_SLA_DBG_MONITOR, 2, vreg_ctr[ VREG_C_IRQ1 ] );
|
// iic_mcu_write_a_byte( IIC_SLA_DBG_MONITOR, 2, vreg_ctr[ VREG_C_IRQ1 ] );
|
||||||
// iic_mcu_write_a_byte( IIC_SLA_DBG_MONITOR, 1, boot_ura );
|
// iic_mcu_write_a_byte( IIC_SLA_DBG_MONITOR, 1, boot_ura );
|
||||||
|
|||||||
@ -23,7 +23,7 @@ extern void nop8();
|
|||||||
|
|
||||||
//=========================================================
|
//=========================================================
|
||||||
static void chk_emergencyExit();
|
static void chk_emergencyExit();
|
||||||
|
static void force_off_check();
|
||||||
|
|
||||||
|
|
||||||
//=========================================================
|
//=========================================================
|
||||||
@ -56,6 +56,7 @@ void tsk_sys( )
|
|||||||
{
|
{
|
||||||
timeout += 1;
|
timeout += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( timeout > 100 )
|
if( timeout > 100 )
|
||||||
{
|
{
|
||||||
system_status.pwr_state = OFF_TRIG; // スイッチはノイズだった。寝る。
|
system_status.pwr_state = OFF_TRIG; // スイッチはノイズだった。寝る。
|
||||||
@ -81,12 +82,6 @@ void tsk_sys( )
|
|||||||
BT_chk();
|
BT_chk();
|
||||||
BT_init(); // 実機やバッテリの判定、電池残量ICの設定
|
BT_init(); // 実機やバッテリの判定、電池残量ICの設定
|
||||||
|
|
||||||
if( system_status.poweron_reason == EXT_POWER )
|
|
||||||
{
|
|
||||||
system_status.pwr_state = BT_CHARGE;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( system_status.model == MODEL_JIKKI_NOBATT )
|
if( system_status.model == MODEL_JIKKI_NOBATT )
|
||||||
{
|
{
|
||||||
renge_task_interval_run_force = 1;
|
renge_task_interval_run_force = 1;
|
||||||
@ -132,7 +127,6 @@ void tsk_sys( )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ON_TRIG: //-------------------------------------------------------
|
case ON_TRIG: //-------------------------------------------------------
|
||||||
|
|
||||||
LED_init( );
|
LED_init( );
|
||||||
|
|
||||||
PU5 = 0b00000010; // 1:PM_CHARGE
|
PU5 = 0b00000010; // 1:PM_CHARGE
|
||||||
@ -191,10 +185,6 @@ void tsk_sys( )
|
|||||||
set_irq( VREG_C_IRQ0, REG_BIT_IRQ_WDT_RESET );
|
set_irq( VREG_C_IRQ0, REG_BIT_IRQ_WDT_RESET );
|
||||||
}
|
}
|
||||||
|
|
||||||
// デバッグ目的
|
|
||||||
vreg_ctr[ VREG_C_ACC_CONFIG ] = 0x03;
|
|
||||||
acc_hosu_set();
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ON: //---------------------------------------------
|
case ON: //---------------------------------------------
|
||||||
@ -203,10 +193,13 @@ void tsk_sys( )
|
|||||||
chk_emergencyExit();
|
chk_emergencyExit();
|
||||||
|
|
||||||
// SLP監視
|
// SLP監視
|
||||||
if( SLP_REQ ){
|
if( SLP_REQ ){
|
||||||
system_status.pwr_state = SLEEP_TRIG;
|
system_status.pwr_state = SLEEP_TRIG;
|
||||||
renge_task_interval_run_force = 1;
|
renge_task_interval_run_force = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 強制offカウント
|
||||||
|
force_off_check();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SLEEP_TRIG: //-------------------------------------
|
case SLEEP_TRIG: //-------------------------------------
|
||||||
@ -228,6 +221,8 @@ void tsk_sys( )
|
|||||||
#endif
|
#endif
|
||||||
system_status.pwr_state = ON;
|
system_status.pwr_state = ON;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
force_off_check();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OFF_TRIG: //---------------------------------------
|
case OFF_TRIG: //---------------------------------------
|
||||||
@ -250,6 +245,7 @@ void tsk_sys( )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
system_status.cnt_force_off = 0;
|
||||||
|
|
||||||
LED_stop( );
|
LED_stop( );
|
||||||
IIC_ctr_Stop( );
|
IIC_ctr_Stop( );
|
||||||
@ -289,17 +285,21 @@ void tsk_sys( )
|
|||||||
IF2 = 0;
|
IF2 = 0;
|
||||||
|
|
||||||
PM_sys_pow_off( );
|
PM_sys_pow_off( );
|
||||||
|
BT_set_relax_timer();
|
||||||
|
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
|
|
||||||
system_status.pwr_state = BT_CHARGE;
|
system_status.pwr_state = BT_CHARGE;
|
||||||
SW_pow_mask = 1;
|
SW_pow_mask = 1;
|
||||||
SW_pow_count = 0;
|
SW_pow_count = 0;
|
||||||
|
|
||||||
// no break //
|
// no break //
|
||||||
|
|
||||||
case BT_CHARGE:
|
case BT_CHARGE:
|
||||||
if( !PM_EXTDC_n )
|
if( !PM_EXTDC_n || ( BT_is_relaxed() == 0 ) )
|
||||||
{
|
{
|
||||||
|
// アダプタが刺さってるときはこのブロックを繰り返す。
|
||||||
|
/// ↓は中で初期化フラグをもってるので呼びまくって良い
|
||||||
iic_mcu_start( );
|
iic_mcu_start( );
|
||||||
BT_chk( );
|
BT_chk( );
|
||||||
|
|
||||||
@ -310,6 +310,10 @@ void tsk_sys( )
|
|||||||
system_status.poweron_reason = PWSW;
|
system_status.poweron_reason = PWSW;
|
||||||
system_status.pwr_state = OFF;
|
system_status.pwr_state = OFF;
|
||||||
}
|
}
|
||||||
|
if( !PM_EXTDC_n )
|
||||||
|
{
|
||||||
|
BT_set_relax_timer();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -339,6 +343,8 @@ void tsk_sys( )
|
|||||||
|
|
||||||
if( PM_EXTDC_n )
|
if( PM_EXTDC_n )
|
||||||
{
|
{
|
||||||
|
// 一度起こしてしまう。ペリフェラルの初期化など流用のため。
|
||||||
|
// 電源ボタンのタイムアウトで返ってくる
|
||||||
SW_pow_mask = 0;
|
SW_pow_mask = 0;
|
||||||
}
|
}
|
||||||
# ifdef _MCU_BSR_
|
# ifdef _MCU_BSR_
|
||||||
@ -429,6 +435,27 @@ static void chk_emergencyExit(){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ========================================================
|
||||||
|
・電源ボタン長押し
|
||||||
|
・電池切れ
|
||||||
|
・電池抜け
|
||||||
|
での強制OFF。発動すると解除不能
|
||||||
|
======================================================== */
|
||||||
|
static void force_off_check()
|
||||||
|
{
|
||||||
|
if( system_status.cnt_force_off != 0 )
|
||||||
|
{
|
||||||
|
system_status.cnt_force_off += 1;
|
||||||
|
if( system_status.cnt_force_off >= ( vreg_ctr[ VREG_C_OFF_DELAY ] * 80 /2 ) )
|
||||||
|
{
|
||||||
|
system_status.pwr_state = OFF_TRIG;
|
||||||
|
renge_task_interval_run_force = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ========================================================
|
/* ========================================================
|
||||||
CPUからのスリープ要求
|
CPUからのスリープ要求
|
||||||
@ -461,9 +488,10 @@ __interrupt void intp0_slp( )
|
|||||||
|
|
||||||
|
|
||||||
/*******************************************************//**
|
/*******************************************************//**
|
||||||
全く意味ないですが、気分的な物で...
|
firm_update()を task_status_immed型 を返すようにすればいいのですが...
|
||||||
**********************************************************/
|
**********************************************************/
|
||||||
task_status_immed tski_firm_update(){
|
task_status_immed tski_firm_update(){
|
||||||
firm_update();
|
firm_update();
|
||||||
return( ERR_SUCCESS );
|
return( ERR_SUCCESS );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,133 @@
|
|||||||
C:\WINDOWS\system32\cmd.exe /c touch magic.c
|
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 -qvjl2wt -sainter_asm -zpb -no 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(125) : 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\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(60) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
pm.c(97) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
pm.c(181) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
pm.c(189) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
pm.c(477) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
pm.c(480) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
pm.c(922) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
pm.c(1019) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
batt_params.h(117) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
batt_params.h(117) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
batt_params.h(122) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
Compilation complete, 0 error(s) and 11 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.
|
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
|
"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.
|
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(89) : CC78K0R warning W0745: Expected function prototype
|
||||||
|
led.c(149) : CC78K0R warning W0411: Illegal pointer combination
|
||||||
|
led.c(164) : CC78K0R warning W0411: Illegal pointer combination
|
||||||
|
led.c(576) : 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\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(146) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
vreg_ctr.c(147) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
vreg_ctr.c(149) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
vreg_ctr.c(151) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
vreg_ctr.c(152) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
Compilation complete, 0 error(s) and 5 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(54) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
vreg_twl.c(58) : 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\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(112) : CC78K0R warning W0745: Expected function prototype
|
||||||
|
adc.c(163) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
adc.c(171) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
adc.c(172) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
adc.c(278) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
adc.c(313) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
Compilation complete, 0 error(s) and 6 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
|
||||||
|
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\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
|
||||||
|
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\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(200) : 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\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
|
||||||
|
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_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(173) : CC78K0R warning W0401: Conversion may lose significant digits
|
||||||
|
task_sys.c(427) : 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\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" -go85h,0FC00h,1024 -gi0FFFFFFFFFFFFFFFFFFFFh -pbsr_k0r.map -nkd -gb7EFBFFh -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 -gi0FFFFFFFFFFFFFFFFFFFFh -pbsr_k0r.map -nkd -gb7EFBFFh -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.
|
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 -nu -ki bsr.lmf
|
"C:\Program Files\NEC Electronics Tools\RA78K0R\W1.31\bin\oc78k0r.exe" -y"C:\Program Files\NEC Electronics Tools\DEV" -_msgoff -o.\bsr.hex -nu -ki bsr.lmf
|
||||||
@ -13,4 +138,4 @@ intel-HEX to bsr bin converter
|
|||||||
file converted!
|
file converted!
|
||||||
|
|
||||||
|
|
||||||
Build Total error(s) : 0 Total warning(s) : 0
|
Build Total error(s) : 0 Total warning(s) : 37
|
||||||
|
|||||||
@ -78,10 +78,10 @@ Symbol Type=OFF
|
|||||||
Language=C
|
Language=C
|
||||||
Kanji=SJIS
|
Kanji=SJIS
|
||||||
[Source]
|
[Source]
|
||||||
Geometry=155, 86, 844, 790
|
Geometry=71, 28, 844, 790
|
||||||
Window=Normal
|
Window=Normal
|
||||||
DispStart=67
|
DispStart=232
|
||||||
CaretPos=68,0
|
CaretPos=233,0
|
||||||
Mode=Normal
|
Mode=Normal
|
||||||
DispFile=
|
DispFile=
|
||||||
Address1=
|
Address1=
|
||||||
@ -894,7 +894,17 @@ Manager=ON
|
|||||||
Sort by=Unsort
|
Sort by=Unsort
|
||||||
Detail=OFF
|
Detail=OFF
|
||||||
Last Name=
|
Last Name=
|
||||||
Count=0
|
Name0=bt_ch001
|
||||||
|
Status0=W
|
||||||
|
Access Size0=B
|
||||||
|
Address Range0=EQ
|
||||||
|
Address0=<bt_chg_ready> - <>
|
||||||
|
Mask Address0=00000000
|
||||||
|
Data Range0=NC
|
||||||
|
Data0=<00000000> - <00000000>
|
||||||
|
Mask Data0=FFFFFFFF
|
||||||
|
Pass0=0001
|
||||||
|
Count=1
|
||||||
[Event Link]
|
[Event Link]
|
||||||
Geometry=0, 0, 0, 0
|
Geometry=0, 0, 0, 0
|
||||||
Window=Hide
|
Window=Hide
|
||||||
@ -910,7 +920,10 @@ Manager=ON
|
|||||||
Sort by=Unsort
|
Sort by=Unsort
|
||||||
Detail=OFF
|
Detail=OFF
|
||||||
Last Name=
|
Last Name=
|
||||||
Count=0
|
Name0=bt_ch002
|
||||||
|
Element0=bt_ch001
|
||||||
|
Set0=OFF
|
||||||
|
Count=1
|
||||||
[Trace]
|
[Trace]
|
||||||
Geometry=0, 0, 0, 0
|
Geometry=0, 0, 0, 0
|
||||||
Window=Hide
|
Window=Hide
|
||||||
@ -960,116 +973,76 @@ Count=0
|
|||||||
Geometry=929, 17, 320, 595
|
Geometry=929, 17, 320, 595
|
||||||
Window=Normal
|
Window=Normal
|
||||||
Boundary=18088086
|
Boundary=18088086
|
||||||
0=.system_status,.,N,A,+,1
|
0=.bt_relax_timer,P,N,A,+,1
|
||||||
1=.battery_manufacturer,P,N,A,+,1
|
1=.bt_remain_old,P,N,A,+,1
|
||||||
2=.bt_comp,.,N,A,+,1
|
2=.vreg_ctr,P,N,A,+,1
|
||||||
3=.raw_adc_temperature,P,N,A,+,1
|
3=.temp_zone_charge_enable,P,N,A,+,1
|
||||||
4=.PM1.7,P,S,A,+,1
|
4=.pif4,P,S,A,+,1
|
||||||
5=.P1.7,P,S,A,+,1
|
5=.pmk4,P,S,A,+,1
|
||||||
6=.bt_comp,.,N,A,+,1
|
6=.chg_led_override,P,N,A,+,1
|
||||||
7=.tasks_immed,P,N,A,+,1
|
7=.p4.3,P,S,A,+,1
|
||||||
8=.vreg_ctr[2],P,N,A,+,1
|
8=.system_status,.,N,A,+,1
|
||||||
9=.vreg_twl[3],P,N,A,+,1
|
9=.battery_manufacturer,P,N,A,+,1
|
||||||
10=.cnt_force_off,P,N,A,+,1
|
10=.bt_comp,.,N,A,+,1
|
||||||
11=.pool.vreg_c_ext,.,N,A,+,1
|
11=.raw_adc_temperature,P,N,A,+,1
|
||||||
12=.p_record,P,N,A,+,1
|
12=.PM1.7,P,S,A,+,1
|
||||||
13=.temp_hours,P,N,A,+,1
|
13=.P1.7,P,S,A,+,1
|
||||||
14=.temp,D,N,A,+,1
|
14=.bt_comp,.,N,A,+,1
|
||||||
Line=15
|
15=.tasks_immed,P,N,A,+,1
|
||||||
|
16=.vreg_ctr[2],P,N,A,+,1
|
||||||
|
17=.vreg_twl[3],P,N,A,+,1
|
||||||
|
18=.cnt_force_off,P,N,A,+,1
|
||||||
|
19=.pool.vreg_c_ext,.,N,A,+,1
|
||||||
|
20=.p_record,P,N,A,+,1
|
||||||
|
21=.temp_hours,P,N,A,+,1
|
||||||
|
22=.temp,D,N,A,+,1
|
||||||
|
Line=23
|
||||||
[Quick Watch]
|
[Quick Watch]
|
||||||
0=temp_hours,P,A,1
|
0=battery_manufacturer,P,A,1
|
||||||
1=cnt_force_off,P,A,1
|
1=bt_comp,P,A,1
|
||||||
2=vreg_ctr[36],P,A,1
|
2=systemstatus,P,A,1
|
||||||
3=vreg_ctr[0x24],P,A,1
|
3=system_status,P,A,1
|
||||||
4=vreg_twl[3],P,A,1
|
4=vreg_ctr[11],P,A,1
|
||||||
5=vreg_ctr[2],P,A,1
|
5=bt_remain_old,P,A,1
|
||||||
6=tasks_immed,P,A,1
|
6=chg_led_override,P,A,1
|
||||||
7=temp,P,A,1
|
7=temp_zone_charge_enable,P,A,1
|
||||||
8=BT_TEMP_P,P,A,1
|
8=bt_chg_ready,P,A,1
|
||||||
9=P1.7,P,A,1
|
9=pmk04,P,A,1
|
||||||
10=PM1.7,P,A,1
|
10=pmk4,P,A,1
|
||||||
11=raw_adc_temperature,P,A,1
|
11=pif4,P,A,1
|
||||||
12=battery_manufacturer,P,A,1
|
12=egn0,P,A,1
|
||||||
13=bt_comp,P,A,1
|
13=p4.3,P,A,1
|
||||||
14=systemstatus,P,A,1
|
14=vreg_ctr,P,A,1
|
||||||
15=system_status,P,A,1
|
15=bt_relax_timer,P,A,1
|
||||||
[Software Break]
|
[Software Break]
|
||||||
Geometry=408, 387, 756, 532
|
Geometry=408, 387, 756, 532
|
||||||
Window=Normal
|
Window=Normal
|
||||||
Width=150 30 200 100
|
Width=150 30 200 100
|
||||||
Name0=Swb00015
|
Name0=Swb00002
|
||||||
Address0=led.c#_tsk_led_cam+0x75
|
Address0=renge.c#_renge_task_immed_run+0x3d
|
||||||
Window0=ASM
|
Window0=ASM
|
||||||
Status0=ON
|
Status0=ON
|
||||||
Name1=Swb00005
|
Name1=Swb00003
|
||||||
Address1=vreg_ctr.c#_vreg_ctr_write+0x194
|
Address1=renge.c#_renge_task_immed_run+0x11c
|
||||||
Window1=ASM
|
Window1=ASM
|
||||||
Status1=OFF
|
Status1=ON
|
||||||
Name2=Swb00008
|
Name2=Swb00005
|
||||||
Address2=loader.c#_main+0x92
|
Address2=task_sys.c#_force_off_check+0x9
|
||||||
Window2=ASM
|
Window2=ASM
|
||||||
Status2=ON
|
Status2=ON
|
||||||
Name3=Swb00004
|
Name3=Swb00001
|
||||||
Address3=vreg_ctr.c#_vreg_ctr_write+0x2be
|
Address3=vreg_ctr.c#_set_irq+0x23
|
||||||
Window3=ASM
|
Window3=ASM
|
||||||
Status3=ON
|
Status3=ON
|
||||||
Name4=Swb00010
|
Name4=Swb00007
|
||||||
Address4=loader.c#_main+0x12
|
Address4=task_sys.c#_tsk_sys+0x225
|
||||||
Window4=ASM
|
Window4=ASM
|
||||||
Status4=ON
|
Status4=ON
|
||||||
Name5=Swb00002
|
Name5=Swb00008
|
||||||
Address5=i2c_mcu.c#_iic_mcu_is_ready+0x1a
|
Address5=task_sys.c#_tsk_sys+0x21a
|
||||||
Window5=ASM
|
Window5=ASM
|
||||||
Status5=ON
|
Status5=ON
|
||||||
Name6=Swb00007
|
Count=6
|
||||||
Address6=loader.c#_main+0x2a
|
|
||||||
Window6=ASM
|
|
||||||
Status6=ON
|
|
||||||
Name7=Swb00001
|
|
||||||
Address7=i2c_twl.c#_int_iic_twl+0x43
|
|
||||||
Window7=ASM
|
|
||||||
Status7=ON
|
|
||||||
Name8=Swb00006
|
|
||||||
Address8=pm.c#_BT_get_left+0x81
|
|
||||||
Window8=ASM
|
|
||||||
Status8=ON
|
|
||||||
Name9=Swb00011
|
|
||||||
Address9=pm.c#_BT_init+0xa1
|
|
||||||
Window9=ASM
|
|
||||||
Status9=ON
|
|
||||||
Name10=Swb00003
|
|
||||||
Address10=task_sys.c#_tsk_sys+0x25a
|
|
||||||
Window10=ASM
|
|
||||||
Status10=ON
|
|
||||||
Name11=Swb00012
|
|
||||||
Address11=task_sys.c#_tsk_sys+0x88
|
|
||||||
Window11=ASM
|
|
||||||
Status11=ON
|
|
||||||
Name12=Swb00013
|
|
||||||
Address12=task_sys.c#_tsk_sys+0x99
|
|
||||||
Window12=ASM
|
|
||||||
Status12=ON
|
|
||||||
Name13=Swb00014
|
|
||||||
Address13=task_sys.c#_tsk_sys+0xa8
|
|
||||||
Window13=ASM
|
|
||||||
Status13=ON
|
|
||||||
Name14=Swb00016
|
|
||||||
Address14=task_sys.c#_tsk_sys+0x79
|
|
||||||
Window14=ASM
|
|
||||||
Status14=ON
|
|
||||||
Name15=Swb00017
|
|
||||||
Address15=task_sys.c#_tsk_sys+0xbe
|
|
||||||
Window15=ASM
|
|
||||||
Status15=ON
|
|
||||||
Name16=Swb00018
|
|
||||||
Address16=task_sys.c#_tsk_sys+0x8b
|
|
||||||
Window16=ASM
|
|
||||||
Status16=ON
|
|
||||||
Name17=Swb00009
|
|
||||||
Address17=pm.c#_BT_get_left+0x0
|
|
||||||
Window17=ASM
|
|
||||||
Status17=ON
|
|
||||||
Count=18
|
|
||||||
[Reset]
|
[Reset]
|
||||||
Debugger=ON
|
Debugger=ON
|
||||||
Symbol=OFF
|
Symbol=OFF
|
||||||
|
|||||||
@ -758,7 +758,7 @@ Jumpoptimize=1
|
|||||||
Librarycallchk=1
|
Librarycallchk=1
|
||||||
Librarycall=1129
|
Librarycall=1129
|
||||||
Aggressivechk=1
|
Aggressivechk=1
|
||||||
Relativebranchchk=1
|
Relativebranchchk=0
|
||||||
Debugoptchk=0
|
Debugoptchk=0
|
||||||
Outdebugchk=1
|
Outdebugchk=1
|
||||||
Outdebug=1153
|
Outdebug=1153
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
[ProjectManager]
|
[ProjectManager]
|
||||||
FrameMax=1
|
FrameMax=1
|
||||||
FrameX=0
|
FrameX=68
|
||||||
FrameY=54
|
FrameY=16
|
||||||
FrameCX=1299
|
FrameCX=1299
|
||||||
FrameCY=1044
|
FrameCY=1044
|
||||||
OpenFile1=vreg_ctr.h,0,132,132,1376,889,15,156,15,0
|
OpenFile1=vreg_ctr.h,0,132,132,1376,889,15,156,15,0
|
||||||
@ -14,14 +14,14 @@ OpenFile7=ProjectWindow
|
|||||||
PrjPos=0,2,754,3,253
|
PrjPos=0,2,754,3,253
|
||||||
OpenFile8=i2c_twl.c,0,308,308,1552,1065,13,130,0,0
|
OpenFile8=i2c_twl.c,0,308,308,1552,1065,13,130,0,0
|
||||||
OpenFile9=renge\renge.c,0,352,352,1596,1109,6,191,16,0
|
OpenFile9=renge\renge.c,0,352,352,1596,1109,6,191,16,0
|
||||||
OpenFile10=config.h,0,286,37,1530,794,40,30,40,0
|
OpenFile10=..\branches\0.15(sdk0.9_E3_fix_vol_core1.20V)\pm.h,0,193,138,1437,895,5,156,107,0
|
||||||
OpenFile11=..\branches\0.15(sdk0.9_E3_fix_vol_core1.20V)\pm.h,0,193,138,1437,895,5,156,107,0
|
OpenFile11=task_sys.c,0,198,198,1442,955,0,83,0,0
|
||||||
OpenFile12=task_sys.c,0,198,198,1442,955,0,83,0,0
|
OpenFile12=pm.h,0,44,44,1288,801,43,74,43,0
|
||||||
OpenFile13=OutputWindow
|
OpenFile13=user_define.h,0,22,22,1266,779,0,1,0,0
|
||||||
|
OpenFile14=config.h,0,44,44,1288,801,17,33,40,0
|
||||||
|
OpenFile15=pm.c,0,44,44,1023,681,38,595,42,0
|
||||||
|
OpenFile16=OutputWindow
|
||||||
OutputPos=0,44,989,1000,1587
|
OutputPos=0,44,989,1000,1587
|
||||||
OpenFile14=pm.h,0,44,44,1288,801,43,74,43,0
|
|
||||||
OpenFile15=user_define.h,0,22,22,1266,779,0,1,0,0
|
|
||||||
OpenFile16=config.h,0,44,44,1288,801,0,1,0,0
|
|
||||||
ActivePRJ=yav_mcu_bsr.prj
|
ActivePRJ=yav_mcu_bsr.prj
|
||||||
[ProjectWindow]
|
[ProjectWindow]
|
||||||
ProjectWindowDispType=0
|
ProjectWindowDispType=0
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
[SdbInfo]
|
[SdbInfo]
|
||||||
Ver=5
|
Ver=5
|
||||||
[loader.c]
|
[loader.c]
|
||||||
T=4bff42bc
|
T=4c04abbf
|
||||||
1=incs_loader.h
|
1=incs_loader.h
|
||||||
2=fsl.h
|
2=fsl.h
|
||||||
3=fsl_user.h
|
3=fsl_user.h
|
||||||
@ -11,7 +11,7 @@ T=4bff42bc
|
|||||||
7=rtc.h
|
7=rtc.h
|
||||||
8=reboot.h
|
8=reboot.h
|
||||||
[pm.c]
|
[pm.c]
|
||||||
T=4c0336e4
|
T=4c04d0aa
|
||||||
1=incs.h
|
1=incs.h
|
||||||
2=adc.h
|
2=adc.h
|
||||||
3=led.h
|
3=led.h
|
||||||
@ -25,7 +25,7 @@ T=4bfdf8cd
|
|||||||
1=config.h
|
1=config.h
|
||||||
2=incs.h
|
2=incs.h
|
||||||
[main.c]
|
[main.c]
|
||||||
T=4bfe231f
|
T=4c04d673
|
||||||
1=incs_loader.h
|
1=incs_loader.h
|
||||||
2=WDT.h
|
2=WDT.h
|
||||||
3=rtc.h
|
3=rtc.h
|
||||||
@ -35,7 +35,7 @@ T=4bfe231f
|
|||||||
7=adc.h
|
7=adc.h
|
||||||
8=pool.h
|
8=pool.h
|
||||||
[magic.c]
|
[magic.c]
|
||||||
T=4c0343a1
|
T=4c04d0aa
|
||||||
1=config.h
|
1=config.h
|
||||||
[WDT.c]
|
[WDT.c]
|
||||||
T=4bf0d1e1
|
T=4bf0d1e1
|
||||||
@ -58,7 +58,7 @@ T=4bfc790f
|
|||||||
T=4bfddb9c
|
T=4bfddb9c
|
||||||
1=incs.h
|
1=incs.h
|
||||||
[vreg_ctr.c]
|
[vreg_ctr.c]
|
||||||
T=4bfdcc40
|
T=4c036041
|
||||||
1=incs.h
|
1=incs.h
|
||||||
2=vreg_ctr.h
|
2=vreg_ctr.h
|
||||||
3=rtc.h
|
3=rtc.h
|
||||||
@ -76,13 +76,13 @@ T=4bfcc957
|
|||||||
4=vreg_twl.h
|
4=vreg_twl.h
|
||||||
5=vreg_ctr.h
|
5=vreg_ctr.h
|
||||||
[adc.c]
|
[adc.c]
|
||||||
T=4bff5669
|
T=4c04ade6
|
||||||
1=incs.h
|
1=incs.h
|
||||||
2=adc.h
|
2=adc.h
|
||||||
3=pm.h
|
3=pm.h
|
||||||
4=led.h
|
4=led.h
|
||||||
[renge\renge.c]
|
[renge\renge.c]
|
||||||
T=4bfdf8cd
|
T=4c04d6fe
|
||||||
1=renge\renge.h
|
1=renge\renge.h
|
||||||
2=renge\renge_task_intval.h
|
2=renge\renge_task_intval.h
|
||||||
3=renge\renge_task_immediate.h
|
3=renge\renge_task_immediate.h
|
||||||
@ -103,7 +103,7 @@ T=4bfb28ce
|
|||||||
4=i2c_ctr.h
|
4=i2c_ctr.h
|
||||||
5=pool.h
|
5=pool.h
|
||||||
[sw.c]
|
[sw.c]
|
||||||
T=4bfce568
|
T=4c04be89
|
||||||
1=incs.h
|
1=incs.h
|
||||||
2=i2c_twl.h
|
2=i2c_twl.h
|
||||||
3=i2c_ctr.h
|
3=i2c_ctr.h
|
||||||
@ -126,7 +126,7 @@ T=4bfb53e4
|
|||||||
6=i2c_mcu.h
|
6=i2c_mcu.h
|
||||||
7=led.h
|
7=led.h
|
||||||
[task_sys.c]
|
[task_sys.c]
|
||||||
T=4bff4570
|
T=4c04be89
|
||||||
1=incs.h
|
1=incs.h
|
||||||
2=i2c_twl.h
|
2=i2c_twl.h
|
||||||
3=i2c_ctr.h
|
3=i2c_ctr.h
|
||||||
@ -138,7 +138,7 @@ T=4bff4570
|
|||||||
9=adc.h
|
9=adc.h
|
||||||
10=self_flash.h
|
10=self_flash.h
|
||||||
[pedo_alg_thre_det2.c]
|
[pedo_alg_thre_det2.c]
|
||||||
T=4bfd1020
|
T=4c03665c
|
||||||
1=incs.h
|
1=incs.h
|
||||||
2=..\..\..\Program Files\NEC Electronics Tools\CC78K0R\W2.10\inc78k0r\math.h
|
2=..\..\..\Program Files\NEC Electronics Tools\CC78K0R\W2.10\inc78k0r\math.h
|
||||||
3=accero.h
|
3=accero.h
|
||||||
@ -173,9 +173,9 @@ T=4bf0d1e0
|
|||||||
[config.h]
|
[config.h]
|
||||||
T=4c031fb9
|
T=4c031fb9
|
||||||
[user_define.h]
|
[user_define.h]
|
||||||
T=4bfdd9ff
|
T=4c03603c
|
||||||
[bsr_system.h]
|
[bsr_system.h]
|
||||||
T=4bf6321a
|
T=4c04b188
|
||||||
[renge\renge.h]
|
[renge\renge.h]
|
||||||
T=4bfdd9d2
|
T=4bfdd9d2
|
||||||
1=renge\renge_defs.h
|
1=renge\renge_defs.h
|
||||||
@ -203,7 +203,7 @@ T=4bf0d1e0
|
|||||||
[i2c_ctr.h]
|
[i2c_ctr.h]
|
||||||
T=4bf0d1e1
|
T=4bf0d1e1
|
||||||
[pm.h]
|
[pm.h]
|
||||||
T=4c031ee9
|
T=4c036933
|
||||||
[rtc.h]
|
[rtc.h]
|
||||||
T=4bf0d1e1
|
T=4bf0d1e1
|
||||||
[reboot.h]
|
[reboot.h]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user