1.24.2008

bookmark memo

紀錄一下...因為這裡GFW block 很多東西,用proxy 又不能直接subscribe..

http://www.navigadget.com/

1.23.2008

到了上海

不怎麼冷,hotel 可以上網,但是 有好多網站上不去.. (像這個 realchecko.blogspot.com)。
還好gmail 和google上得去。

查了一下,好像是GFW的關係,所以要看 blogspot的 blog,要到 http://www.pkblogs.com/


我真是蠢蛋,就已經進不來了,還寫在這..

應該要bookmark起來才對

1.18.2008

現在Sleep時,插上LCD,會多出2mA。
=== Sleep 時,LCD bus 的 pin 腳要設成 output,low, pull-down enable。

USB 沒有插入時,要把USB Control Block + USB PHY 的power 關掉。

Battery Low Sleep 要改 為3.1V - 還要test一下新的average recal 是否work
明天要作的事:
  1. 清天花板
    1. 買拖把。
    2. 買漂白水。
  2. 整理房間。
  3. 洗衣服。
  4. 準備東西。
    1. 買12" NB 包包 ?
    2. 拿小行李箱 ?
    3. 衣服 ?
  5. 吃eStork 尾牙。
    1. 到南莰
    2. 到新竹

1.17.2008

WAVEDEV - Volume

HandleWaveMessage():
SetGain(newgain) [ By pStreamContext or DeviceContext ]

StreamContext (SetGain )
GainChange( )
{
m_fxGain = MapGain(newgain);
}

MapGain( )
translate and tablet from GainMap[ ]
可以知道最後update到m_fxGain 這個variable中。

這個variable 給很多 ouput.cpp 的 Render( ) 使用。
有趣的地方:

CMidiNote::Render( ) 中,會由 SineTable[] 取出 amplititude,然後 * m_fxGain。

加上log message:
StreamContext:SetGain 19991999
StreamContext:GainChange
StreamContext:MapGain 1999
SecondaryGain fff, Total Gain 1998e667
Index 39, Result 9EF
result 就是經過GainMap[] 後的值。

1.16.2008

Work Notes : Launch Shell cause system hang

新的Shell 在 Explorer Mode 啟動不起來 (cause system hang)。
Solution : Loyal 說,要手動加一個 Key (DWORD) :
 HKEY_LOCAL_MACHINE\Platform\ResetFlag = 1
設完後,就可以開啟Shell 了。
所以,在debug完之前,在release dir 的 platform.reg中加入
[HKEY_LOCAL_MACHINE\Platform]
IF BSP_ENABLE_SHELL !
"ResetFlag"=dword:1
ENDIF

Get, Set Thread Priority

要知道目前自己這個Thread的Priority,用
GetThreadPriority( GetCurrentThread() ); 
要改變/設定自己的Thread Priority,用
SetThreadPriority( GetCurrentThread( ), NewPri );
CE 的 Priority Number 越小,Priority越高。

但是 help 檔說,新版應該要用 CeGetThreadPriority( ), CeSetThreadPriority( ) 。