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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [common/] [libsoc/] [src/] [soc.h] - Blame information for rev 175

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 172 ja_rd
/**
2
    @file soc.h
3
    @brief
4
 
5
    This mini-library is meant for use in systems where no underlying OS or
6
    even a libc is available.
7
 
8
    The usual toolchains for MIPS (e.g. CodeSourcery) ship with precompiled
9
    libraries that target the MIPS32 architecture and are not easily useable
10
    on the Ion CPU core (which is compatible to an R3000). This code is intended
11
    to replace libc entirely in applications that don't demand the whole POSIX
12
    package.
13
 
14
    @note SOC conventionally stands for System On a Chip.
15
*/
16
 
17
#ifndef SOC_H_INCLUDED
18
#define SOC_H_INCLUDED
19
 
20
#include <stdint.h>
21
 
22
/*-- Library options ---------------------------------------------------------*/
23
 
24
/** !=0 to print a CR after each NL automatically */
25
#define IMPLICIT_CR_WITH_NL     (1)
26
 
27
 
28
/*-- Functions not present in libc -------------------------------------------*/
29
 
30
/** Return the time elapsed since last HW reset in clock cycles */
31
unsigned ctime(void);
32
 
33
 
34
#endif // SOC_H_INCLUDED

powered by: WebSVN 2.1.0

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