-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
34 lines (28 loc) · 1.08 KB
/
README
File metadata and controls
34 lines (28 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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.