Skip to content

Commit a95f05f

Browse files
committedFeb 15, 2016
Revert "sdram: fix cdelay prototype to remove warning in sdram_phy.h"
This reverts commit 1330c7e.
1 parent 1330c7e commit a95f05f

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed
 

‎misoclib/mem/sdram/phy/initsequence.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def get_sdram_phy_header(sdram_phy_settings):
88
nphases = sdram_phy_settings.nphases
99
r += "#define DFII_NPHASES "+str(nphases)+"\n\n"
1010

11-
r += "extern void cdelay(int i);\n"
11+
r += "static void cdelay(int i);\n"
1212

1313
# commands_px functions
1414
for n in range(nphases):

‎software/bios/sdram.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include "sdram.h"
1313

14-
void cdelay(int i)
14+
static void cdelay(int i)
1515
{
1616
while(i > 0) {
1717
#if defined (__lm32__)

‎software/bios/sdram.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#include <generated/csr.h>
55

6-
void cdelay(int i);
7-
86
void sdrsw(void);
97
void sdrhw(void);
108
void sdrrow(char *_row);

0 commit comments

Comments
 (0)
Please sign in to comment.