提交 3344963e 编写于 作者: B bernard.xiong

add more STM32F107 support

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@165 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 7f60fd9f
...@@ -216,7 +216,7 @@ Options 1,0,0 // Target 'RT-Thread STM32' ...@@ -216,7 +216,7 @@ Options 1,0,0 // Target 'RT-Thread STM32'
ADSLDMC (--keep __fsym_* --keep __vsym_*) ADSLDMC (--keep __fsym_* --keep __vsym_*)
ADSLDIF () ADSLDIF ()
ADSLDDW () ADSLDDW ()
OPTDL (SARMCM3.DLL)()(DARMSTM.DLL)(-pSTM32F103ZE)(SARMCM3.DLL)()(TARMSTM.DLL)(-pSTM32F103ZE) OPTDL (SARMCM3.DLL)()(DARMSTM.DLL)(-pSTM32F107xCSchedule)(SARMCM3.DLL)()(TARMSTM.DLL)(-pSTM32F107xC)
OPTDBG 49150,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()() OPTDBG 49150,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()()
FLASH1 { 9,0,0,0,1,0,0,0,5,16,0,0,0,0,0,0,0,0,0,0 } FLASH1 { 9,0,0,0,1,0,0,0,5,16,0,0,0,0,0,0,0,0,0,0 }
FLASH2 (Segger\JL2CM3.dll) FLASH2 (Segger\JL2CM3.dll)
......
...@@ -26,11 +26,7 @@ ...@@ -26,11 +26,7 @@
/*@{*/ /*@{*/
#ifdef RT_USING_LWIP #ifdef RT_USING_LWIP
#ifdef STM32F10X_CL #include "enc28j60.h"
extern void rt_hw_stm32_eth_init(void);
#else
#include "enc28j60.h"
#endif
#include <netif/ethernetif.h> #include <netif/ethernetif.h>
#endif #endif
...@@ -40,7 +36,6 @@ extern void finsh_system_init(void); ...@@ -40,7 +36,6 @@ extern void finsh_system_init(void);
extern void finsh_set_device(const char* device); extern void finsh_set_device(const char* device);
#endif #endif
/* bss end definitions for heap init */
#ifdef __CC_ARM #ifdef __CC_ARM
extern int Image$$RW_IRAM1$$ZI$$Limit; extern int Image$$RW_IRAM1$$ZI$$Limit;
#elif __ICCARM__ #elif __ICCARM__
...@@ -109,25 +104,18 @@ void rtthread_startup(void) ...@@ -109,25 +104,18 @@ void rtthread_startup(void)
/* init hardware serial device */ /* init hardware serial device */
rt_hw_usart_init(); rt_hw_usart_init();
#ifdef RT_USING_DFS
/* init sdcard driver */ /* init sdcard driver */
#if STM32_USE_SDIO #if STM32_USE_SDIO
rt_hw_sdcard_init(); rt_hw_sdcard_init();
#else #else
rt_hw_msd_init(); rt_hw_msd_init();
#endif #endif
#endif
#ifdef RT_USING_LWIP #ifdef RT_USING_LWIP
eth_system_device_init(); eth_system_device_init();
/* register ethernetif device */ /* register ethernetif device */
#ifdef STM32F10X_CL
rt_hw_stm32_eth_init();
#else
rt_hw_enc28j60_init(); rt_hw_enc28j60_init();
#endif
#endif #endif
rt_hw_rtc_init(); rt_hw_rtc_init();
...@@ -141,7 +129,7 @@ void rtthread_startup(void) ...@@ -141,7 +129,7 @@ void rtthread_startup(void)
#ifdef RT_USING_FINSH #ifdef RT_USING_FINSH
/* init finsh */ /* init finsh */
finsh_system_init(); finsh_system_init();
finsh_set_device(FINSH_DEVICE_NAME); finsh_set_device("uart1");
#endif #endif
/* init idle thread */ /* init idle thread */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册