Advertisement
Guest User

Untitled

a guest
Jan 7th, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.78 KB | None | 0 0
  1. diff --git a/litesdcard/firmware/sdcard.c b/litesdcard/firmware/sdcard.c
  2. index 86b0181..90c6a3d 100644
  3. --- a/litesdcard/firmware/sdcard.c
  4. +++ b/litesdcard/firmware/sdcard.c
  5. @@ -589,6 +589,8 @@ void sdcard_bist_checker_wait(void) {
  6.  /* user */
  7.  
  8.  int sdcard_init(void) {
  9. +        unsigned short rca;
  10. +
  11.          /* initialize SD driver parameters */
  12.         sdcore_cmdtimeout_write(1<<19);
  13.         sdcore_datatimeout_write(1<<19);
  14. diff --git a/litesdcard/firmware/sdcard.h b/litesdcard/firmware/sdcard.h
  15. index ede8ab6..7edbc8d 100644
  16. --- a/litesdcard/firmware/sdcard.h
  17. +++ b/litesdcard/firmware/sdcard.h
  18. @@ -44,8 +44,6 @@
  19.  #define SDCARD_CTRL_RESPONSE_SHORT 1
  20.  #define SDCARD_CTRL_RESPONSE_LONG  2
  21.  
  22. -unsigned short rca;
  23. -
  24.  /* clocking */
  25.  
  26.  void sdclk_set_clk(unsigned int freq);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement