2011-11-28

GPIO觀念

Registers:
Enable Reg: enable the pin as a function or just a GPIO pin.
Direction Reg: I/O, input or output. (defined by hardware)
Output Reg: Activity, activize utility of the GPIO pin when high or low current. (0 or1)
Input Reg: The reg for input data.  (device ==> cpu)


Input/Output:
Output: cpu ==> device (ex: led)
Input: device ==> cpu (ex: reset button)

2011-11-23

U-Boot Command 架構

Ex:

int setGpioA(u32 pin, u32 value);
int unknown_GPIO(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) //argc 參數個數
{
   
    if((strcmp(argv[1], "on") == 0) || (strcmp(argv[1], "ON") == 0))
    {
         setGpioA(10, 0);
    }
    else if((strcmp(argv[1], "off") == 0) || (strcmp(argv[1], "OFF") == 0))
    {
         setGpioA(10, 1);
    }
    return 0;
}

int setGpioA(u32 pin, u32 value)
{
    volatile unsigned int reg = 0x01 << pin;
    if(value == 1)
    {
        *((volatile unsigned int *)0x74000000) |= reg;  //取暫存器位址之值
        printf("ndlndsnlk 0x74000000 %X\n" , reg);
       
    }
    else
    {
        *((volatile unsigned int *)0x74000000) &= ~reg;
    }
    return 0;
}
   
U_BOOT_CMD(
        unknown,      2,     4,      unknown_GPIO,
        "Unknown GPIO \n",
        ""
        "input on/off \n"
);

2011-11-19

Mosquito Killer


The application emit a very unique high frequency sound (ultra sound) that insects dislike. The pitch of the sound is so high that most humans will not notice anything.


* Not all devices support the high frequency sound



音即是一種能量。正常的人耳聽力範圍極限約在20kHz~20000kHz之間,此app能產生人耳聽覺範圍外的超高音頻,利用其能量達到驅趕蚊蟲的功效。


*建議將手機音量調大,以提高功效
*並非所有手機的音訊裝置都支援此超高音頻,正常情況下執行此app,人耳是聽不到聲音的。若執行app時手機發出任何聲音,表示您的手機不支援。





Free Download:

2011-11-17

Epic Task Killer



There are many types of task killer apps on the market, but them usually consume high CPU and memory resource by themselves. Epic Task Killer is the new generation of system management technology, it is very efficient and only consume very low CPU and memory resource. If you often feel your phone runs slowly or battery is exhausted soon, you should install Epic Task Killer.


The main advantages of Advanced Task Killer+:

* High efficiency
* very low CPU and memory resource usage
* Speed up your phone
* Save battery
* Frequency Option (Free)
* Security Option (Free)
* Ignore list
* Auto-Task killer with 2 levels
* Easy to use
* Epic


App states:

Killable: able to be killed by auto-task kill service
UnKillable: unable to be killed by auto-task service


How to use:

1. Kill apps:
    Select apps and click "Kill Apps" button.

2. Auto-Level:
   *Middle: for general usage
   *High: for game playing or high  efficacy app running

3. Refresh running apps:
    Click "Refresh" button.

4. View app information/execute app:
    Click a app of the running app list











Free Download:

Elegant Torch


This is an original and brightest torch/strobe/flashlight app. Turn phone into a torch. It help find your way in a dark room or the movie theater is that you keep stepping on.





Features:

* Brightest
* Simple
* Varied brightness
* Record brightness automatically
* Artistic





Free Download:

2011-11-07

Constants: RunningAppProcessInfo.importance

Constants


public static final int IMPORTANCE_BACKGROUND

Constant for importance: this process process contains background code that is expendable.
Constant Value: 400 (0x00000190)


public static final int IMPORTANCE_EMPTY

Constant for importance: this process is empty of any actively running code.
Constant Value: 500 (0x000001f4)


public static final int IMPORTANCE_FOREGROUND

Constant for importance: this process is running the foreground UI.
Constant Value: 100 (0x00000064)


public static final int IMPORTANCE_PERCEPTIBLE

Constant for importance: this process is running something that is considered to be actively perceptible to the user. An example would be an application performing background music playback.
Constant Value: 130 (0x00000082)


public static final int IMPORTANCE_SERVICE

Constant for importance: this process is contains services that should remain running.
Constant Value: 300 (0x0000012c)


public static final int IMPORTANCE_VISIBLE

Constant for importance: this process is running something that is actively visible to the user, though not in the immediate foreground.
Constant Value: 200 (0x000000c8)


public static final int REASON_PROVIDER_IN_USE

Constant for importanceReasonCode: one of the application's content providers is being used by another process. The pid of the client process is in importanceReasonPid and the target provider in this process is in importanceReasonComponent.
Constant Value: 1 (0x00000001)


public static final int REASON_SERVICE_IN_USE

Constant for importanceReasonCode: one of the application's content providers is being used by another process. The pid of the client process is in importanceReasonPid and the target provider in this process is in importanceReasonComponent.
Constant Value: 2 (0x00000002)


public static final int REASON_UNKNOWN

Constant for importanceReasonCode: nothing special has been specified for the reason for this level.
Constant Value: 0 (0x00000000)                   

source:

2011-11-04

台北捷運指南


乘台北捷運時,開發者時常會有搞不清楚要搭乘哪條線、到哪一站的煩惱。然而,在人擠人的捷運中,頻繁的跑去查看牆上的指示其實並不是很方便。因此,我們開發了這款『台北捷運指南』,讓像開發者一樣(路癡...XD)的您,可以隨時拿起手機查看捷運地圖,希望大家會喜歡。


色:

1. 即開即看、簡單方便
2. 支援地圖縮放,查看更清晰
3. 官網高解析度地圖
4. 即時更新最新站點資訊
5. 路痴必備,趕快下載 (逃)



使用方法:
1. 地圖縮放: 以兩指觸控螢幕,拉近/拉遠兩指距離
2. 移動視點: 地圖放大後,以單指拖曳螢幕



際執行畫面:



















費下載『台北捷運指南』:
https://market.android.com/details?id=unknown.TaipeiMRT.com&feature=more_from_developer#?t=W251bGwsMSwyLDEwMiwidW5rbm93bi5UYWlwZWlNUlQuY29tIl0.

高雄捷運指南


乘高雄捷運時,開發者時常會有搞不清楚要搭乘哪條線、到哪一站的煩惱。然而,在人擠人的捷運中,頻繁的跑去查看牆上的指示其實並不是很方便。因此,我們開發了這款『高雄捷運指南』,讓像開發者一樣(路癡...XD)的您,可以隨時拿起手機查看捷運地圖,希望大家會喜歡。


色:

1. 即開即看、簡單方便
2. 支援地圖縮放,查看更清晰
3. 官網高解析度地圖
4. 即時更新最新站點資訊
5. 路痴必備,趕快下載 (逃)


使用方法:

1. 地圖縮放: 以兩指觸控螢幕,拉近/拉遠兩指距離
2. 移動視點: 地圖放大後,以單指拖曳螢幕


際執行畫面: