Ignore:
Timestamp:
Sep 10, 2014, 2:17:02 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
f3508c44
Parents:
0facefc
Message:

bsps/arm: Add a9mpcore_clock_initialize_early()

This is necessary to use the CPU counter converter even in case no clock
driver is present, e.g. in tmcontext01.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/include/arm-a9mpcore-clock.h

    r0facefc recf64a5e  
    1010#define LIBBSP_ARM_SHARED_ARM_A9MPCORE_CLOCK_H
    1111
    12 #include <bsp.h>
     12#include <rtems/counter.h>
    1313
    1414#ifdef __cplusplus
     
    2323uint32_t a9mpcore_clock_periphclk(void);
    2424
     25/**
     26 * @brief Do early clock initialization so that the CPU counter conversion
     27 * works.
     28 */
     29static inline void a9mpcore_clock_initialize_early(void)
     30{
     31  rtems_counter_initialize_converter(a9mpcore_clock_periphclk());
     32}
     33
    2534#ifdef __cplusplus
    2635}
Note: See TracChangeset for help on using the changeset viewer.