We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to the FE310 Manual the csid register is log2(cs_width)
This implies:
For SPI 0x10024000
However, in the code https://github.com/sifive/freedom-metal/blob/v201908-branch/src/drivers/sifive_spi0.c#L117 it is set like a cs_width register where each bit corresponds to each chip select line. So the register would act like this
A fix would be
/* Set CS line */ METAL_SPI_REGW(METAL_SIFIVE_SPI0_CSID) = config->csid;
The text was updated successfully, but these errors were encountered:
Thanks for this too @jamolnng!
Sorry, something went wrong.
Merge pull request #219 from sifive/rename-welcome
edd89ec
Rename example-coreip-welcome to sifive-welcome
No branches or pull requests
According to the FE310 Manual the csid register is log2(cs_width)
This implies:
For SPI 0x10024000
However, in the code https://github.com/sifive/freedom-metal/blob/v201908-branch/src/drivers/sifive_spi0.c#L117 it is set like a cs_width register where each bit corresponds to each chip select line. So the register would act like this
For SPI 0x10024000
A fix would be
The text was updated successfully, but these errors were encountered: