fixed sys tick issue.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1702 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2011-09-07 15:31:18 +00:00
parent 5aaa2b190c
commit 6c98ecd729
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,7 @@
#include <CMSIS/LPC11xx.h>
#include <CMSIS/core_cm0.h>
#include <CMSIS/system_LPC11xx.h>
/**
* @addtogroup LPC1100
@ -48,7 +49,7 @@ void rt_hw_board_init()
SystemInit();
/* init systick */
SysTick_Config(0x0007A11F);
SysTick_Config(SystemCoreClock);
/* set pend exception priority */
NVIC_SetPriority(PendSV_IRQn, (1<<__NVIC_PRIO_BITS) - 1);

View File

@ -246,6 +246,9 @@ void rt_hw_uart_init(void)
rt_memset(uart->rx_buffer, 0, sizeof(uart->rx_buffer));
uart->read_index = uart->save_index = 0;
uart->parent.rx_indicate = RT_NULL;
uart->parent.tx_complete = RT_NULL;
/* device interface */
uart->parent.init = rt_uart_init;
uart->parent.open = rt_uart_open;