update lpc178x bsp

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1764 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
wuyangyong
2011-10-14 05:43:51 +00:00
parent 5de50e1422
commit 01a17f4f38
4 changed files with 245 additions and 217 deletions

View File

@@ -40,19 +40,19 @@
/* thread phase init */
void rt_init_thread_entry(void *parameter)
{
unsigned int count=0;
while (1)
{
/* led1 on */
rt_kprintf("on count : %d\r\n",count);
count++;
rt_thread_delay( RT_TICK_PER_SECOND/2 ); /* sleep 0.5 second and switch to other thread */
/* led1 off */
rt_kprintf("led off\r\n");
rt_thread_delay( RT_TICK_PER_SECOND/2 );
}
// unsigned int count=0;
//
// while (1)
// {
// /* led1 on */
// rt_kprintf("on count : %d\r\n",count);
// count++;
// rt_thread_delay( RT_TICK_PER_SECOND/2 ); /* sleep 0.5 second and switch to other thread */
//
// /* led1 off */
// rt_kprintf("led off\r\n");
// rt_thread_delay( RT_TICK_PER_SECOND/2 );
// }
/* Filesystem Initialization */
#ifdef RT_USING_DFS

View File

@@ -20,6 +20,7 @@
#define RT_UART_RX_BUFFER_SIZE 64
#define RT_USING_UART0
#define RT_USING_UART1
#define RT_USING_UART2
#define CONSOLE_DEVICE "uart1"
#define FINSH_DEVICE_NAME "uart1"

File diff suppressed because it is too large Load Diff

View File

@@ -85,12 +85,12 @@ void rtthread_startup(void)
#ifdef RT_USING_HEAP
#ifdef __CC_ARM
rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)0x10008000);
rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)(0x10000000 + 1024*64));
#elif __ICCARM__
rt_system_heap_init(__segment_end("HEAP"), (void*)0x10008000);
rt_system_heap_init(__segment_end("HEAP"), (void*)(0x10000000 + 1024*64));
#else
/* init memory system */
rt_system_heap_init((void*)&__bss_end, (void*)0x10008000);
rt_system_heap_init((void*)&__bss_end, (void*)(0x10000000 + 1024*64));
#endif
#endif