sysregs_gr740.h
1.03 KB
/* -----------------------------------------------------------------------------
* Copyright (C) 2020 daiteq s.r.o. http://www.daiteq.com
*
* This program is distributed WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE.
*
* -----------------------------------------------------------------------------
* Filename : sysregs.h
* Authors : Martin Danek
* Description : system register definitions
* Release :
* Version : 1.0
* Date : 14.6.2020
* -----------------------------------------------------------------------------
*/
#ifndef SYSREGS_GR740_H
#define SYSREGS_GR740_H
// SYSREGS configuration register definitions
#define UPCOUNTER_RST 0x80000000
#define UPCOUNTER_START 0x00000000
#define UPCOUNTER_STOP 0x80000000
void sysregs740_init();
void sysregs740_start();
void sysregs740_stop();
void sysregs740_read(unsigned *ticks_lo, unsigned *ticks_hi, unsigned *insns_lo, unsigned *insns_hi);
#endif