OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [examples/] [common/] [maps/] [map_gptimers.h] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 sergeykhbr
/******************************************************************************
2
 * @file
3
 * @copyright Copyright 2017 GNSS Sensor Ltd. All right reserved.
4
 * @author    Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief     General Purpose Timers register mapping definition.
6
******************************************************************************/
7
#ifndef __MAP_GPTIMERS_H__
8
#define __MAP_GPTIMERS_H__
9
 
10
#include <inttypes.h>
11
 
12
#define TIMER_CONTROL_ENA      (1 << 0)
13
#define TIMER_CONTROL_IRQ_ENA  (1 << 1)
14
 
15
typedef struct gptimer_type {
16
    volatile uint32_t control;
17
    volatile uint32_t rsv1;
18
    volatile uint64_t cur_value;
19
    volatile uint64_t init_value;
20
} gptimer_type;
21
 
22
 
23
typedef struct gptimers_map {
24
        uint64_t highcnt;
25
        uint32_t pending;
26
        uint32_t rsvr[13];
27
        gptimer_type timer[2];
28
} gptimers_map;
29
 
30
#endif  // __MAP_GPTIMERS_H__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.