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

smhc: add is cleared functions and several unit test cases #13

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

Placebo27
Copy link
Contributor

@Placebo27 Placebo27 commented Oct 8, 2024

Change has_xxx_reset to is_xxx_reset_cleared avoiding potential confusion that DMA_RST, FIFO_RST, SOFT_RST in Global control register and Bit 31 (SMHC_CMD_START, or CMD_LOAD) in Command register are write-1-set, auto-cleared by hardware.

For Global Control Register, add is DMA, FIFO, Software Reset signal cleared by hardware functions and related test cases.
For Command Register, add is command start cleared function and test cases.

Complete the structure read/write function unit tests for Uart Bus Gating Reset, SPI Clock and SPI Bus Gating Registers.

src/smhc.rs Outdated Show resolved Hide resolved
@luojia65 luojia65 merged commit d3109a5 into rustsbi:main Oct 9, 2024
3 checks passed
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.

2 participants