feat(all): add multiple instances and peripherals#14
Merged
Conversation
luojia65
approved these changes
Feb 11, 2026
luojia65
left a comment
Member
There was a problem hiding this comment.
LGTM with minor modifications :)
Comment on lines
+5
to
+8
| /// Core Local Interrupt Controller register block. | ||
| #[repr(C, align(4))] | ||
| pub struct RegisterBlock { | ||
| /// CLIC configuration register (`CLICCFG`). |
Member
There was a problem hiding this comment.
Can we reuse this project: https://github.com/rustsbi/clic for CLIC module? We can reuse its RegisterBlock (clic::peripheral::Clic) for this purpose. Those peripheral functions can be added to the clic crate.
Member
There was a problem hiding this comment.
Edit: use xuantie-riscv if we regard as Xuantie specific, see rustsbi/xuantie#7
| @@ -0,0 +1,3 @@ | |||
| //! CLINT register blocks and registers. | |||
|
|
|||
| pub use xuantie_riscv::peripheral::clint::THeadClint as RegisterBlock; | |||
- Added: `AXICFG`, `CE`, `CLIC`, `CLINT`, `CMU`, `DMA`, `QSPI`, `RTC`, `SDMC`, `SID`, `SPI_ENC`, `SYSCFG`, `WRI`, `XSPI`. - Fix QSPI enumeration management. Signed-off-by: Chongbing Yu <nanahigh@openatom.club>
Member
Author
|
The implementation of CLIC-related PAC has now been moved to the XuanTie crate. |
luojia65
approved these changes
Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AXICFG,CE,CLIC,CLINT,CMU,DMA,QSPI,RTC,SDMC,SID,SPI_ENC,SYSCFG,WRI,XSPI.