Develop and Download Open Source Software

Ticket #26788

Open Date: 2011-11-23 17:52

Last Update: 2011-11-23 17:52

TIMER_CLOCKの値が間違っている

Reporter:suikanOwner:(None)
Priority:3MileStone:(None)
Type:BugsSeverity:5 - Medium
Component:(None)Status:Open
ResolutionNone

Details

asp/arch/arm_m_gcc/lpc1700_gcc/chip_timer.hの TIMER_CLOCKの定義が間違っている。

#define TIMER_CLOCK		(SYS_CLOCK / 1000)

とあるが、システムタイマーの割り込み周期は1mSで、LPC1768の動作周波数は100MHzであるため、正しくは

#define TIMER_CLOCK		(SYS_CLOCK / 100000)

とすべきである。

なお、そもそも動作周波数はターゲット依存であるため、この定義はチップ依存部からターゲット依存部に移すことが望ましい。ただし、このマクロは現在使用していない。

Attach File

File ListNo attachments.
Add New attachment
Add attachment filesPlease login to add new attachment

Ticket History - 1/1 Histories

2011-11-23 17:52 Update by: suikan

  • New Ticket "TIMER_CLOCKの値が間違っている" created

Add Comment/Update #26788 (TIMER_CLOCKの値が間違っている)

You are not logged in. If you do not want to anonymous write, please login. » Login


SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.