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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [common/] [libsoc/] [src/] [soc.h] - Diff between revs 172 and 175

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 172 Rev 175
/**
/**
    @file soc.h
    @file soc.h
    @brief
    @brief
 
 
    This mini-library is meant for use in systems where no underlying OS or
    This mini-library is meant for use in systems where no underlying OS or
    even a libc is available.
    even a libc is available.
 
 
    The usual toolchains for MIPS (e.g. CodeSourcery) ship with precompiled
    The usual toolchains for MIPS (e.g. CodeSourcery) ship with precompiled
    libraries that target the MIPS32 architecture and are not easily useable
    libraries that target the MIPS32 architecture and are not easily useable
    on the Ion CPU core (which is compatible to an R3000). This code is intended
    on the Ion CPU core (which is compatible to an R3000). This code is intended
    to replace libc entirely in applications that don't demand the whole POSIX
    to replace libc entirely in applications that don't demand the whole POSIX
    package.
    package.
 
 
    @note SOC conventionally stands for System On a Chip.
    @note SOC conventionally stands for System On a Chip.
*/
*/
 
 
#ifndef SOC_H_INCLUDED
#ifndef SOC_H_INCLUDED
#define SOC_H_INCLUDED
#define SOC_H_INCLUDED
 
 
#include <stdint.h>
#include <stdint.h>
 
 
/*-- Library options ---------------------------------------------------------*/
/*-- Library options ---------------------------------------------------------*/
 
 
/** !=0 to print a CR after each NL automatically */
/** !=0 to print a CR after each NL automatically */
#define IMPLICIT_CR_WITH_NL     (1)
#define IMPLICIT_CR_WITH_NL     (1)
 
 
 
 
/*-- Functions not present in libc -------------------------------------------*/
/*-- Functions not present in libc -------------------------------------------*/
 
 
/** Return the time elapsed since last HW reset in clock cycles */
/** Return the time elapsed since last HW reset in clock cycles */
unsigned ctime(void);
unsigned ctime(void);
 
 
/** Copy initialized '.data' sections from ROM to RAM.
 
    This function relies on symbols defined by the kernel script.
 
 */
 
void copy_data_sections(void);
 
 
 
#endif // SOC_H_INCLUDED
#endif // SOC_H_INCLUDED
 
 

powered by: WebSVN 2.1.0

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