Skip to content

Commit f60514c

Browse files
committed
formatting thead-smart bsp code
1 parent b104bbc commit f60514c

File tree

16 files changed

+143
-143
lines changed

16 files changed

+143
-143
lines changed

bsp/thead-smart/applications/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
int main(void)
1414
{
15-
15+
1616
return 0;
1717
}
1818

bsp/thead-smart/drivers/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*

bsp/thead-smart/drivers/board_uart.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2018, RT-Thread Development Team
2+
* Copyright (c) 2006-2021, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -35,7 +35,7 @@ struct
3535
uint32_t base;
3636
uint32_t irq;
3737
void *handler;
38-
}
38+
}
3939
const sg_usart_config[CONFIG_USART_NUM] =
4040
{
4141
{CSKY_UART_BASE, UART_IRQn, ck_usart0_irqhandler},
@@ -44,22 +44,22 @@ const sg_usart_config[CONFIG_USART_NUM] =
4444

4545
int32_t target_usart_init(int32_t idx, uint32_t *base, uint32_t *irq, void **handler)
4646
{
47-
if (idx >= CONFIG_USART_NUM)
47+
if (idx >= CONFIG_USART_NUM)
4848
{
4949
return -1;
5050
}
5151

52-
if (base != NULL)
52+
if (base != NULL)
5353
{
5454
*base = sg_usart_config[idx].base;
5555
}
5656

57-
if (irq != NULL)
57+
if (irq != NULL)
5858
{
5959
*irq = sg_usart_config[idx].irq;
6060
}
6161

62-
if (handler != NULL)
62+
if (handler != NULL)
6363
{
6464
*handler = sg_usart_config[idx].handler;
6565
}

bsp/thead-smart/drivers/ck_irq.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern void (*g_nmivector)(void);
2525
*/
2626
void drv_irq_enable(uint32_t irq_num)
2727
{
28-
if (NMI_EXPn != irq_num)
28+
if (NMI_EXPn != irq_num)
2929
{
3030
#ifdef CONFIG_SYSTEM_SECURE
3131
csi_vic_enable_sirq(irq_num);
@@ -42,7 +42,7 @@ void drv_irq_enable(uint32_t irq_num)
4242
*/
4343
void drv_irq_disable(uint32_t irq_num)
4444
{
45-
if (NMI_EXPn != irq_num)
45+
if (NMI_EXPn != irq_num)
4646
{
4747
#ifdef CONFIG_SYSTEM_SECURE
4848
csi_vic_disable_sirq(irq_num);
@@ -60,11 +60,11 @@ void drv_irq_disable(uint32_t irq_num)
6060
*/
6161
void drv_irq_register(uint32_t irq_num, void *irq_handler)
6262
{
63-
if (NMI_EXPn != irq_num)
63+
if (NMI_EXPn != irq_num)
6464
{
6565
g_irqvector[irq_num] = irq_handler;
66-
}
67-
else
66+
}
67+
else
6868
{
6969
g_nmivector = irq_handler;
7070
}
@@ -77,11 +77,11 @@ void drv_irq_register(uint32_t irq_num, void *irq_handler)
7777
*/
7878
void drv_irq_unregister(uint32_t irq_num)
7979
{
80-
if (NMI_EXPn != irq_num)
80+
if (NMI_EXPn != irq_num)
8181
{
8282
g_irqvector[irq_num] = (void *)Default_Handler;
83-
}
84-
else
83+
}
84+
else
8585
{
8686
g_nmivector = (void *)Default_Handler;
8787
}

0 commit comments

Comments
 (0)