[BSP] use RT_UNUSED instead of UNUSED
This commit is contained in:
parent
e029f14b46
commit
200282a0bc
@ -142,10 +142,8 @@ void rtthread_startup(void)
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
rt_uint32_t level UNUSED;
|
|
||||||
|
|
||||||
/* disable interrupt first */
|
/* disable interrupt first */
|
||||||
level = rt_hw_interrupt_disable();
|
rt_hw_interrupt_disable();
|
||||||
rtthread_startup();
|
rtthread_startup();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -66,7 +66,7 @@ void rt_hw_serial_init(void);
|
|||||||
|
|
||||||
void rt_hw_uart_isr(struct rt_lpcserial* lpc_serial)
|
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)
|
RT_ASSERT(lpc_serial != RT_NULL)
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ void rt_hw_serial_init(void);
|
|||||||
|
|
||||||
void rt_hw_uart_isr(int irqno, void *param)
|
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;
|
struct rt_lpcserial* lpc_serial = (struct rt_lpcserial*)param;
|
||||||
|
|
||||||
RT_ASSERT(lpc_serial != RT_NULL)
|
RT_ASSERT(lpc_serial != RT_NULL)
|
||||||
|
@ -90,10 +90,8 @@ void rtthread_startup(void)
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
rt_uint32_t UNUSED level;
|
|
||||||
|
|
||||||
/* disable interrupt first */
|
/* disable interrupt first */
|
||||||
level = rt_hw_interrupt_disable();
|
rt_hw_interrupt_disable();
|
||||||
|
|
||||||
/* init system setting */
|
/* init system setting */
|
||||||
SystemInit();
|
SystemInit();
|
||||||
|
@ -51,7 +51,7 @@ void rt_serial_handler(int vector, void *param)
|
|||||||
{
|
{
|
||||||
//rt_kprintf("in rt_serial_handler\n");
|
//rt_kprintf("in rt_serial_handler\n");
|
||||||
rt_int32_t stat = *(RP)UART0_IIR ;
|
rt_int32_t stat = *(RP)UART0_IIR ;
|
||||||
UNUSED char c;
|
RT_UNUSED char c;
|
||||||
|
|
||||||
/*Received data*/
|
/*Received data*/
|
||||||
if (((stat & 0x0E) >> 1) == 0x02)
|
if (((stat & 0x0E) >> 1) == 0x02)
|
||||||
|
@ -271,7 +271,7 @@ static rt_err_t sd_readblock(rt_uint32_t address, rt_uint8_t* buf)
|
|||||||
U32 complete,i;
|
U32 complete,i;
|
||||||
rt_uint8_t temp;
|
rt_uint8_t temp;
|
||||||
rt_err_t err;
|
rt_err_t err;
|
||||||
UNUSED rt_uint32_t discard;
|
RT_UNUSED rt_uint32_t discard;
|
||||||
#ifdef USE_TIMEOUT
|
#ifdef USE_TIMEOUT
|
||||||
rt_uint32_t to = 10;
|
rt_uint32_t to = 10;
|
||||||
#endif
|
#endif
|
||||||
|
@ -85,10 +85,8 @@ void rtthread_startup(void)
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
rt_uint32_t UNUSED level;
|
|
||||||
|
|
||||||
/* disable interrupt first */
|
/* disable interrupt first */
|
||||||
level = rt_hw_interrupt_disable();
|
rt_hw_interrupt_disable();
|
||||||
|
|
||||||
/* startup RT-Thread RTOS */
|
/* startup RT-Thread RTOS */
|
||||||
rtthread_startup();
|
rtthread_startup();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user