mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-18 16:45:33 -04:00
i2c_xxx の init で初期化するポートが誤っていた。(hwinit2() で初期化済みの物を上書きする動作だったので実害などはなし)
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@497 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
a671223934
commit
2d13854f38
@ -270,7 +270,7 @@ void IIC_ctr_Init( void )
|
||||
// IICAPR0 = 1; /* set INTIICA high priority */
|
||||
// IICAPR1 = 0; /* set INTIICA high priority */ スタック不足
|
||||
|
||||
P20 &= ~0x3;
|
||||
Port &= ~0x03;
|
||||
|
||||
SVA = IIC_C_SLAVEADDRESS;
|
||||
IICF = 0x01;
|
||||
@ -293,7 +293,6 @@ void IIC_ctr_Init( void )
|
||||
IICE = 1;
|
||||
|
||||
PortMode &= ~0x03;
|
||||
Port &= ~0x03;
|
||||
|
||||
state = IIC_IDLE;
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ void IIC_twl_Init( void )
|
||||
|
||||
IICAPR0 = 0; /* set INTIICA high priority */
|
||||
IICAPR1 = 0; /* set INTIICA high priority */
|
||||
P20 &= ~0x3;
|
||||
Port &= ~0x03;
|
||||
|
||||
SVA = IIC_T_SLAVEADDRESS;
|
||||
IICF = 0x01;
|
||||
@ -227,7 +227,6 @@ void IIC_twl_Init( void )
|
||||
IICE = 1;
|
||||
|
||||
PortMode &= ~0x03;
|
||||
Port &= ~0x03;
|
||||
|
||||
LREL = 1;
|
||||
}
|
||||
|
@ -13,10 +13,6 @@
|
||||
#include "led.h"
|
||||
|
||||
|
||||
// ========================================================
|
||||
static void LED_oshirase_init();
|
||||
|
||||
|
||||
|
||||
// ========================================================
|
||||
// TPS0
|
||||
@ -121,9 +117,6 @@ void LED_init( )
|
||||
6 電源 L
|
||||
7 電源 H
|
||||
*/
|
||||
LED_oshirase_init(); // お知らせパターン初期化
|
||||
|
||||
/// ペリフェラル初期化 ///
|
||||
TAU0EN = 1;
|
||||
TPS0 = BIT_PRS012 | BIT_PRS002; // マスタークロックはCK01,8M/2 /2^4 = 250kHz
|
||||
|
||||
@ -148,7 +141,7 @@ void LED_init( )
|
||||
// アップデートなどでマイコンのみリブートしたとき
|
||||
if( system_status.reboot )
|
||||
{
|
||||
// SoC からのコマンドを待たず、自動で電源 LED をつける
|
||||
// SoC からのコマンドが来ないので自動で電源 LED をつける
|
||||
vreg_ctr[VREG_C_LED_POW] = LED_POW_ILM_AUTO;
|
||||
LED_duty_pow_blu = LED_BRIGHT_MAX;
|
||||
}
|
||||
@ -157,22 +150,6 @@ void LED_init( )
|
||||
}
|
||||
|
||||
|
||||
static void LED_oshirase_init()
|
||||
{
|
||||
char* p_tgt = &info_LED;
|
||||
int i;
|
||||
|
||||
for( i = 0; i < sizeof(info_LED); i++ )
|
||||
{
|
||||
*p_tgt = 0;
|
||||
p_tgt++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/********************************************//**
|
||||
LEDの停止。
|
||||
|
||||
|
@ -19,7 +19,7 @@ OpenFile12=ProjectWindow
|
||||
PrjPos=0,0,706,0,291
|
||||
OpenFile13=config.h,0,300,300,1891,1007,2,7,2,0
|
||||
OpenFile14=OutputWindow
|
||||
OutputPos=0,200,850,258,1214
|
||||
OutputPos=0,247,897,112,1068
|
||||
ActivePRJ=yav_mcu_bsr.prj
|
||||
[ProjectWindow]
|
||||
ProjectWindowDispType=0
|
||||
|
Loading…
Reference in New Issue
Block a user