History

metag: Time keeping

Add time keeping code for metag. Meta hardware threads have 2 timers. The background timer (TXTIMER) is used as a free-running time base, and the interrupt timer (TXTIMERI) is used for the timer interrupt. Both counters traditionally count at approximately 1MHz.

James Hogan committed 14 years ago

Commit a2c5d4e1 parent bc3966b10 files · +378 −0Browse files

Showing the changes to include (1 of 10 files). Show all

Unified · Split

include/clocksource/metag_generic.h+21−0
@@ -0,0 +1,21 @@
1+/*
2+ * Copyright (C) 2013 Imaginaton Technologies Ltd.
3+ *
4+ * This program is free software; you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License version 2 as
6+ * published by the Free Software Foundation.
7+ *
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
12+ *
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
15+ */
16+#ifndef __CLKSOURCE_METAG_GENERIC_H
17+#define __CLKSOURCE_METAG_GENERIC_H
18+
19+extern int metag_generic_timer_init(void);
20+
21+#endif /* __CLKSOURCE_METAG_GENERIC_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t