Skip to content

composable low-level library with zero-overhead. (read-only mirror)

License

index-0/libfe310

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libfe310 - C Library for the SiFive FE310 SoC
=============================================
libfe310 is a minimal C library for the SiFive FE310 SoC, providing both
low-level register access and high-level helper functions for peripheral
configuration, control and interrupt handling, with no dependencies, not
even to the C standard library.

Requirements
------------
To build libfe310, you need a working RISC-V toolchain with GCC or Clang
that supports the rv32imac_zicsr_zifencei architecture.

Installation
------------
1. Run `./configure' to customize the settings for your environment.
2. Build and install the library with the following command:
    make install

Use `./configure -h` for available options and defaults.

Usage
-----
To use libfe310, link with `-lfe310` and include headers like this:
    #include <fe310/core/plic.h>
    #include <fe310/delay.h>
    #include <fe310/periph/gpio.h>

If installed to a custom path, add the following flags to your compiler:
    -I/path/to/fe310/include
    -L/path/to/fe310/lib

License
-------
See LICENSE file for copyright and license details.

About

composable low-level library with zero-overhead. (read-only mirror)

Resources

License

Stars

Watchers

Forks