diff --git a/bsp/dm365/applications/application.c b/bsp/dm365/applications/application.c index 21bef7ca9..7582bc2aa 100644 --- a/bsp/dm365/applications/application.c +++ b/bsp/dm365/applications/application.c @@ -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 diff --git a/bsp/dm365/applications/startup.c b/bsp/dm365/applications/startup.c index b417b1e82..f4c02d17d 100644 --- a/bsp/dm365/applications/startup.c +++ b/bsp/dm365/applications/startup.c @@ -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(); diff --git a/bsp/dm365/rtconfig.py b/bsp/dm365/rtconfig.py index 0132d11c8..bf6426075 100644 --- a/bsp/dm365/rtconfig.py +++ b/bsp/dm365/rtconfig.py @@ -1,3 +1,4 @@ +import os # toolchains options ARCH = 'arm' CPU = 'dm36x'