摘要: 本文描述基于mini6410平台的time.c中的相关代码,主要描述下对部分代码的理解。先贴上代码: 1 /* we use the shifted arithmetic to work out the ratio of timer ticks 2 * to usecs, as often the peripheral clock is not a nice even multiple 3 * of 1MHz. 4 * 5 * shift of 14 and 15 are too low for the 12MHz, 16 seems to be ok 6 * for the cur... 阅读全文
posted @ 2014-04-02 23:53 Bennnyzhao 阅读(316) 评论(0) 推荐(0) 编辑