Skip to content

Commit 1330c7e

Browse files
committedJan 23, 2016
sdram: fix cdelay prototype to remove warning in sdram_phy.h
1 parent 0607e92 commit 1330c7e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
 

Diff for: ‎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 += "static void cdelay(int i);\n"
11+
r += "extern void cdelay(int i);\n"
1212

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

Diff for: ‎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-
static void cdelay(int i)
14+
void cdelay(int i)
1515
{
1616
while(i > 0) {
1717
#if defined (__lm32__)

Diff for: ‎software/bios/sdram.h

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

44
#include <generated/csr.h>
55

6+
void cdelay(int i);
7+
68
void sdrsw(void);
79
void sdrhw(void);
810
void sdrrow(char *_row);

0 commit comments

Comments
 (0)