Skip to content

Commit eedb4e1

Browse files
authored
[imxrt] 消除编译警告
1 parent 6a225ff commit eedb4e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bsp/imxrt/libraries/drivers/drv_sdram.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
static struct rt_memheap system_heap;
2222
#endif
2323

24-
static int rt_hw_sdram_init(void)
24+
int rt_hw_sdram_init(void)
2525
{
2626
int result = RT_EOK;
2727
semc_config_t config;
@@ -104,22 +104,22 @@ static void sdram_test(void)
104104
rt_uint32_t *sdram = (rt_uint32_t *)SDRAM_BANK_ADDR; /* SDRAM start address. */
105105
bool result = true;
106106

107-
LOG_D("\r\n SEMC SDRAM Memory 32 bit Write Start, Start Address 0x%x, Data Length %d !\r\n", sdram, datalen);
107+
LOG_D("SEMC SDRAM Memory 32 bit Write Start, Start Address 0x%x, Data Length %d !", sdram, datalen);
108108
/* Prepare data and write to SDRAM. */
109109
for (index = 0; index < datalen; index++)
110110
{
111111
sdram_writeBuffer[index] = index;
112112
sdram[index] = sdram_writeBuffer[index];
113113
}
114114

115-
LOG_D("\r\n SEMC SDRAM Read 32 bit Data Start, Start Address 0x%x, Data Length %d !\r\n", sdram, datalen);
115+
LOG_D("SEMC SDRAM Read 32 bit Data Start, Start Address 0x%x, Data Length %d !", sdram, datalen);
116116
/* Read data from the SDRAM. */
117117
for (index = 0; index < datalen; index++)
118118
{
119119
sdram_readBuffer[index] = sdram[index];
120120
}
121121

122-
LOG_D("\r\n SEMC SDRAM 32 bit Data Write and Read Compare Start!\r\n");
122+
LOG_D("SEMC SDRAM 32 bit Data Write and Read Compare Start!");
123123
/* Compare the two buffers. */
124124
while (datalen--)
125125
{
@@ -132,11 +132,11 @@ static void sdram_test(void)
132132

133133
if (!result)
134134
{
135-
LOG_E("\r\n SEMC SDRAM 32 bit Data Write and Read Compare Failed!\r\n");
135+
LOG_E("SEMC SDRAM 32 bit Data Write and Read Compare Failed!");
136136
}
137137
else
138138
{
139-
LOG_D("\r\n SEMC SDRAM 32 bit Data Write and Read Compare Succeed!\r\n");
139+
LOG_D("SEMC SDRAM 32 bit Data Write and Read Compare Succeed!");
140140
}
141141
}
142142
MSH_CMD_EXPORT(sdram_test, sdram test)

0 commit comments

Comments
 (0)