摘要:
C tokens are of six types, They are, keyword identifier constant string literal punctuator preprocessing token: head name identifer pp number characte 阅读全文
摘要:
Some time I'd like check source code after macro expand. We can use E option to stop after the preprocessing stage, do not run the compiler. The sourc 阅读全文
摘要:
這篇的對象是 static function, static function 若沒有其它 function 去存取的話, 在 compile 時,會發生 unused error, 可以在 function 前加上 __attribute__((unused)) 避免出現 unused error 阅读全文
摘要:
device tree source 的 interrupt names property 會對應到 pltform_get_irq_byname() 的第二個參數。 .dtsi or .dts .c 阅读全文
摘要:
最近遇到一個問題, gpio 讀出來的值與預期不同, 詳細描述如下: 首先手機 download 了一個完整的 daily build image , 接下來 不斷地修改 kernel 部分 code, 並且不斷地燒錄 其中一部分 image,也就是 bootimage, 一個完整的 image 是 阅读全文
摘要:
在跑案子前, 需向各 component vendor 申請 EVB board, 其中也包含 mosfet , 以利做實驗, spec 有可能會寫錯 或不清楚, 所以需要使用 EVB board 檢查特性或是 controller 行為。 Ex. battery dummy battery cha 阅读全文
摘要:
```
$ adb root
# cat /sys/kernel/debug/gpio
```
![](https://images2018.cnblogs.com/blog/1070734/201803/1070734-20180319102529448-1208512171.png) 阅读全文
摘要:
倘若你要設定 負值的property, 可能需要括符才會 build 過。 正確 decidegc = ; 錯誤 decidegc = ; 阅读全文
摘要:
```
while : do echo " infinite loop" sleep 2; done
``` 阅读全文
摘要:
VI 的搜尋取代語法格式大致如下 :[範圍]s/[比對字串]/[取代字串]/[g,c,i] 範圍部分: 範圍表示法為開頭 , 結束 假如我要從第 1 行到第 150 行,可以這樣下: 1, 150 假如我要從第 1 行到最後一行,可以這樣下: 1, $ 假如我要設定全部範圍,可以這樣下: % (其實 阅读全文