enjoy-digital / litesdcard

Small footprint and configurable SDCard core
Other
111 stars 35 forks source link

cleanup: CSR accessors and global variable in header #6

Closed gsomlo closed 4 years ago

gsomlo commented 4 years ago
  1. clean up SDCORE_RESPONSE read access (use new array accessor available in LiteX)

  2. remove global variable definition from header file, make it local to the (only) function that references it.

enjoy-digital commented 4 years ago

Thanks @gsomlo, sorry for the delay. I did an initial test just after you made the PR, but seemed to had a regression. That's possible it was related to the CSR accessors changes in LiteX. I just did another test now and it's working fine, so can merge you PR.