目前分類:學習 (102)
- Oct 05 Thu 2017 09:33
Floyd's Cycle - Tortoise and Hare
- Sep 29 Fri 2017 11:29
java - covariant and invariant
在研究為什麼 List<List<Integer>> res = new ArrayList<>();
- Jun 28 Wed 2017 18:05
2017 Algo HW3 Search(Binary Input)
- Jun 27 Tue 2017 14:50
2017 Algo HW1 Sorting:如何快速讀寫檔string to int
hw1 Sorting:
input.txt ---------------------- N: number of sequence SEQ1 SEQ2 output.txt ---------------------- sorted SEQ1 sorted SEQ2 Example. input.txt ---------------------- 2 8 5 9 2 1 output.txt ---------------------- 5 8 9 1 2
- May 07 Sun 2017 22:05
when do we need class destructor
- Mar 21 Tue 2017 20:41
message pack 作業
- Dec 27 Tue 2016 09:11
feof 容易犯的錯誤-最後一行多讀一次
這似乎也是很多人會遇到的問題,就是使用feof最後一行有時候會出現多讀一次的狀況
但其實問題是這樣,在最後一行後才是eof,在 C 的函式下, 只有當上一個讀取已經產生 end of file 錯誤的時候, feof() 才會傳回 true
- Dec 27 Tue 2016 09:02
fscanf 的用法
- Dec 27 Tue 2016 08:59
C++ 的動態配置陣列 ---- 以二維陣列為例
- Nov 02 Wed 2016 10:54
OS hw2 share memory
- Aug 07 Thu 2014 20:47
FIFO underflow/overflow
首先,希望你有fifo寄存器的概念。你可以把它理解成一个水管,数据可以往里写,需要的时候读出来。
Rx和TX两个端口都可以去操作这根水管,当水管满了,当然就不能再往里写了(overflow);水管是空的时候,自然不能从里面读出东西来(underflow);
- Jun 06 Fri 2014 21:14
Linux request_threaded_irq() 與 request_irq() 差異
貼一下最近發生的糗事,因為之前不知道這個function的差別,所以一直以為有一個driver在interrupt context裏面做了很多會sleep的動作,一開始還嘖嘖稱奇說為什麼這樣的driver會動
結果是我們沒見過世面,這算是書本上還來不及更新的知識吧,再這幾年linux新增進來的function,讓irq handle能更簡潔快速,一些會sleep的動作可以在一開始request irq 的時候就指定好要由kernel thread來執行
也因為是在kernel context下執行,所以他不受interrupt context的atomic限制,可以有sleep的動作(像是i2c,spi和semaphore)
- Jun 06 Fri 2014 21:09
PANEL 相關
這沒看過先memo
以我知道是panel 有分command mode和video mode(主要是因為有沒有ram而導致控制的差異)
然後傳輸模式有high speed 和 lower power mode
不過看來不只是我想的那麼單純
- Mar 03 Mon 2014 17:36
LCM panel id
- Feb 27 Thu 2014 18:14
MAC OS 小天地
======bashrc or bash_profile 移植======
- Start up Terminal
- Type
cd ~/
to go to your home folder - Type
touch .bash_profile
to create your new file. - Edit
.bash_profile
with your favorite editor (or you can just typeopen -e .bash_profile
to open it in TextEdit. - Type
. .bash_profile
to reload.bash_profile
and update any alias you add
bashrc沒有用
- Feb 17 Mon 2014 23:26
MHL dongle 插上第一次沒畫面,第二次就正常
- Dec 10 Tue 2013 22:23
int& type 轉換
- Oct 30 Wed 2013 10:57
driver memo