fix compile error.

This commit is contained in:
weety 2015-09-04 22:10:22 +08:00
parent 907190124b
commit 31f24f3460
3 changed files with 3 additions and 6 deletions

View File

@ -126,7 +126,6 @@ void rt_init_thread_entry(void* parameter)
{
rt_i2c_core_init();
davinci_i2c_init("I2C1");
pcf8563_init("I2C1", 0x51);
}
#endif
@ -139,9 +138,7 @@ void rt_init_thread_entry(void* parameter)
#ifdef RT_USING_SDIO
rt_mmcsd_core_init();
rt_mmcsd_blk_init();
#if 1
//rt_hw_mmcsd_init();
spi_sd_init("spi10");
rt_hw_mmcsd_init();
rt_thread_delay(RT_TICK_PER_SECOND*2);
/* mount sd card fat partition 1 as root directory */
if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
@ -150,7 +147,6 @@ void rt_init_thread_entry(void* parameter)
}
else
rt_kprintf("File System initialzation failed!%d\n", rt_get_errno());
#endif
#endif
}
#endif

View File

@ -134,7 +134,7 @@ void rtthread_startup(void)
int main(void)
{
rt_uint32_t UNUSED level;
rt_uint32_t RT_UNUSED level;
/* disable interrupt first */
level = rt_hw_interrupt_disable();

View File

@ -1,3 +1,4 @@
import os
# toolchains options
ARCH = 'arm'
CPU = 'dm36x'