提交 b86a4601 编写于 作者: qiuyiuestc's avatar qiuyiuestc

remove warning

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@745 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 a07a9164
...@@ -38,7 +38,7 @@ rt_isr_handler_t rt_hw_interrupt_handle(rt_uint32_t vector) ...@@ -38,7 +38,7 @@ rt_isr_handler_t rt_hw_interrupt_handle(rt_uint32_t vector)
/** /**
* This function will initialize hardware interrupt * This function will initialize hardware interrupt
*/ */
void rt_hw_interrupt_init() void rt_hw_interrupt_init(void)
{ {
register rt_uint32_t idx; register rt_uint32_t idx;
...@@ -77,7 +77,7 @@ void rt_hw_interrupt_init() ...@@ -77,7 +77,7 @@ void rt_hw_interrupt_init()
* This function will mask a interrupt. * This function will mask a interrupt.
* @param vector the interrupt number * @param vector the interrupt number
*/ */
void rt_hw_interrupt_mask(rt_uint32_t vector) void rt_hw_interrupt_mask(int vector)
{ {
INTMSK |= 1 << vector; INTMSK |= 1 << vector;
} }
...@@ -86,7 +86,7 @@ void rt_hw_interrupt_mask(rt_uint32_t vector) ...@@ -86,7 +86,7 @@ void rt_hw_interrupt_mask(rt_uint32_t vector)
* This function will un-mask a interrupt. * This function will un-mask a interrupt.
* @param vector the interrupt number * @param vector the interrupt number
*/ */
void rt_hw_interrupt_umask(rt_uint32_t vector) void rt_hw_interrupt_umask(int vector)
{ {
if (vector == INTNOTUSED6) if (vector == INTNOTUSED6)
{ {
...@@ -105,7 +105,7 @@ void rt_hw_interrupt_umask(rt_uint32_t vector) ...@@ -105,7 +105,7 @@ void rt_hw_interrupt_umask(rt_uint32_t vector)
* @param new_handler the interrupt service routine to be installed * @param new_handler the interrupt service routine to be installed
* @param old_handler the old interrupt service routine * @param old_handler the old interrupt service routine
*/ */
void rt_hw_interrupt_install(rt_uint32_t vector, rt_isr_handler_t new_handler, rt_isr_handler_t *old_handler) void rt_hw_interrupt_install(int vector, rt_isr_handler_t new_handler, rt_isr_handler_t *old_handler)
{ {
if(vector < MAX_HANDLERS) if(vector < MAX_HANDLERS)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册