Ticket #26788

TIMER_CLOCKの値が間違っている

Eröffnet am: 2011-11-23 17:52 Letztes Update: 2011-11-23 17:52

Auswertung:
Verantwortlicher:
(Keine)
Typ:
Status:
Offen
Komponente:
(Keine)
Meilenstein:
(Keine)
Priorität:
3
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
Keine

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)

とすべきである。

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

Ticket-Verlauf (1/1 Historien)

2011-11-23 17:52 Aktualisiert von: suikan
  • New Ticket "TIMER_CLOCKの値が間違っている" created

Dateianhangliste

Keine Anhänge

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden