fix compile error.
This commit is contained in:
parent
907190124b
commit
31f24f3460
|
@ -126,7 +126,6 @@ void rt_init_thread_entry(void* parameter)
|
||||||
{
|
{
|
||||||
rt_i2c_core_init();
|
rt_i2c_core_init();
|
||||||
davinci_i2c_init("I2C1");
|
davinci_i2c_init("I2C1");
|
||||||
pcf8563_init("I2C1", 0x51);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -139,9 +138,7 @@ void rt_init_thread_entry(void* parameter)
|
||||||
#ifdef RT_USING_SDIO
|
#ifdef RT_USING_SDIO
|
||||||
rt_mmcsd_core_init();
|
rt_mmcsd_core_init();
|
||||||
rt_mmcsd_blk_init();
|
rt_mmcsd_blk_init();
|
||||||
#if 1
|
rt_hw_mmcsd_init();
|
||||||
//rt_hw_mmcsd_init();
|
|
||||||
spi_sd_init("spi10");
|
|
||||||
rt_thread_delay(RT_TICK_PER_SECOND*2);
|
rt_thread_delay(RT_TICK_PER_SECOND*2);
|
||||||
/* mount sd card fat partition 1 as root directory */
|
/* mount sd card fat partition 1 as root directory */
|
||||||
if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
|
if (dfs_mount("sd0", "/", "elm", 0, 0) == 0)
|
||||||
|
@ -150,7 +147,6 @@ void rt_init_thread_entry(void* parameter)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
rt_kprintf("File System initialzation failed!%d\n", rt_get_errno());
|
rt_kprintf("File System initialzation failed!%d\n", rt_get_errno());
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -134,7 +134,7 @@ void rtthread_startup(void)
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
rt_uint32_t UNUSED level;
|
rt_uint32_t RT_UNUSED level;
|
||||||
|
|
||||||
/* disable interrupt first */
|
/* disable interrupt first */
|
||||||
level = rt_hw_interrupt_disable();
|
level = rt_hw_interrupt_disable();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import os
|
||||||
# toolchains options
|
# toolchains options
|
||||||
ARCH = 'arm'
|
ARCH = 'arm'
|
||||||
CPU = 'dm36x'
|
CPU = 'dm36x'
|
||||||
|
|
Loading…
Reference in New Issue