Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import NMSIS #2

Closed
wants to merge 8 commits into from
Closed

Conversation

soburi
Copy link

@soburi soburi commented Jun 5, 2021

NMSIS(https://github.com/Nuclei-Software/NMSIS) is a common definition for Nuclei RISC-V core that release from Nuclei System.
It's a good replacement from n200_*.h headers that this repository contains.
NMSIS are well-organized sources, actively develop.
I think importing it will help maintain this driver.

This PR is import NMSIS to GD32VF103_Firmware_Library.
Files in "RISCV" are modified to keep compatibility.

(Newly added NMSIS directory needs to add to compiler option.
PlatformIO's sample is here. https://github.com/soburi/platform-gd32v/tree/nmsis
And need to add include "nmsis_core.h" line to head of libopt.h.)

remove riscv_bits.h and riscv_encoding.h that is exists
same name file in NMSIS directory

riscv_const.h changes into simple wrapper to riscv_bits.h
- replace read/write/set/clear CSR macros to __RV_CSR_*
- rewrite ECLIC control function with NMSIS's macros
- definitions in header are redefined with NMSIS's definitions
- remove unused header include
- rewrite ECLIC initialization with NMSIS function
add return statement to __wrap_printf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant