Browse Source

[BSP] use RT_UNUSED instead of UNUSED

Bernard Xiong 9 years ago
parent
commit
200282a0bc

+ 1 - 3
bsp/lm3s8962/applications/startup.c

@@ -142,10 +142,8 @@ void rtthread_startup(void)
 
 int main(void)
 {
-	rt_uint32_t level UNUSED;
-
 	/* disable interrupt first */
-	level = rt_hw_interrupt_disable();
+	rt_hw_interrupt_disable();
 	rtthread_startup();
 	
 	return 0;

+ 1 - 1
bsp/lpc2148/drivers/serial.c

@@ -66,7 +66,7 @@ void rt_hw_serial_init(void);
 
 void rt_hw_uart_isr(struct rt_lpcserial* lpc_serial)
 {
-	UNUSED rt_uint32_t iir;
+	RT_UNUSED rt_uint32_t iir;
 
 	RT_ASSERT(lpc_serial != RT_NULL)
 

+ 1 - 1
bsp/lpc2478/drivers/serial.c

@@ -66,7 +66,7 @@ void rt_hw_serial_init(void);
 
 void rt_hw_uart_isr(int irqno, void *param)
 {
-	UNUSED rt_uint32_t iir;
+	RT_UNUSED rt_uint32_t iir;
 	struct rt_lpcserial* lpc_serial = (struct rt_lpcserial*)param;
 
 	RT_ASSERT(lpc_serial != RT_NULL)

+ 1 - 3
bsp/mb9bf500r/startup.c

@@ -90,10 +90,8 @@ void rtthread_startup(void)
 
 int main(void)
 {
-	rt_uint32_t UNUSED level;
-
 	/* disable interrupt first */
-	level = rt_hw_interrupt_disable();
+	rt_hw_interrupt_disable();
 
 	/* init system setting */
 	SystemInit();

+ 1 - 1
bsp/mini4020/drivers/board.c

@@ -51,7 +51,7 @@ void rt_serial_handler(int vector, void *param)
 {
 	//rt_kprintf("in rt_serial_handler\n");
 	rt_int32_t stat = *(RP)UART0_IIR ;
-	UNUSED char c;
+	RT_UNUSED char c;
 
 	/*Received data*/
 	if (((stat & 0x0E) >> 1) == 0x02)

+ 1 - 1
bsp/mini4020/drivers/sdcard.c

@@ -271,7 +271,7 @@ static rt_err_t sd_readblock(rt_uint32_t address, rt_uint8_t* buf)
 	U32 complete,i;
 	rt_uint8_t temp;
 	rt_err_t err;
-	UNUSED rt_uint32_t discard;
+	RT_UNUSED rt_uint32_t discard;
 	#ifdef USE_TIMEOUT
 	rt_uint32_t to = 10;
 	#endif

+ 1 - 3
bsp/nios_ii/startup.c

@@ -85,10 +85,8 @@ void rtthread_startup(void)
 
 int main(void)
 {
-    rt_uint32_t UNUSED level;
-
     /* disable interrupt first */
-    level = rt_hw_interrupt_disable();
+    rt_hw_interrupt_disable();
 
     /* startup RT-Thread RTOS */
     rtthread_startup();