[BSP] use RT_UNUSED instead of UNUSED

This commit is contained in:
Bernard Xiong 2015-08-09 11:34:41 +08:00
parent e029f14b46
commit 200282a0bc
7 changed files with 7 additions and 13 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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)

View File

@ -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();

View File

@ -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)

View File

@ -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

View File

@ -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();