5
Last change
on this file since 762fa62 was
65f868c,
checked in by Sebastian Huber <sebastian.huber@…>, on 05/23/18 at 12:17:25
|
Add _CPU_Counter_frequency()
Add rtems_counter_frequency() API function. Use it to initialize the
counter value converter via the new system initialization step
(RTEMS_SYSINIT_CPU_COUNTER). This decouples the counter implementation
and the counter converter. It avoids an unnecessary pull in of the
64-bit integer division from libgcc.
Update #3456.
|
-
Property mode set to
100644
|
File size:
436 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2018 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Dornierstr. 4 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <rtems@embedded-brains.de> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.org/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #include <rtems/score/cpu.h> |
---|
16 | |
---|
17 | uint32_t _CPU_Counter_frequency( void ) |
---|
18 | { |
---|
19 | return 1000000000; |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.