mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Remove the tail spaces from all files except Documentation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Brennan Ashton
parent
528dce4f7f
commit
2c5f653bfd
@@ -128,17 +128,17 @@
|
||||
: (UART_CONTROL &= ~(MSK_UART_ENABLE_RXIT | MSK_UART_ENABLE_TXIT))\
|
||||
) \
|
||||
) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart1_flow_ctrl_config(uart_flow) ( uart_flow == ON \
|
||||
? (BM3803_REG.uart_ctrl1 |= MSK_UART_ENABLE_FLOW) \
|
||||
: (BM3803_REG.uart_ctrl1 &= ~MSK_UART_ENABLE_FLOW) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart1_loopback_config(uart_loopb) ( uart_loopb == ON \
|
||||
? (BM3803_REG.uart_ctrl1 |= MSK_UART_LOOPBACK) \
|
||||
: (BM3803_REG.uart_ctrl1 &= ~MSK_UART_LOOPBACK) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart1_enable() (BM3803_REG.uart_ctrl1 |= (MSK_UART_ENABLE_RX | MSK_UART_ENABLE_TX))
|
||||
#define uart1_disable() (BM3803_REG.uart_ctrl1 &= ~(MSK_UART_ENABLE_RX | MSK_UART_ENABLE_TX))
|
||||
@@ -161,12 +161,12 @@
|
||||
#define uart2_flow_ctrl_config(uart_flow) ( uart_flow == ON \
|
||||
? (BM3803_REG.uart_ctrl2 |= MSK_UART_ENABLE_FLOW) \
|
||||
: (BM3803_REG.uart_ctrl2 &= ~MSK_UART_ENABLE_FLOW) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart2_loopback_config(uart_loopb) ( uart_loopb == ON \
|
||||
? (BM3803_REG.uart_ctrl2 |= MSK_UART_LOOPBACK) \
|
||||
: (BM3803_REG.uart_ctrl2 &= ~MSK_UART_LOOPBACK) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart2_enable() (BM3803_REG.uart_ctrl2 |= (MSK_UART_ENABLE_RX | MSK_UART_ENABLE_TX))
|
||||
#define uart2_disable() (BM3803_REG.uart_ctrl2 &= ~(MSK_UART_ENABLE_RX | MSK_UART_ENABLE_TX))
|
||||
@@ -189,12 +189,12 @@
|
||||
#define uart3_flow_ctrl_config(uart_flow) ( uart_flow == ON \
|
||||
? (BM3803_REG.uart_ctrl3 |= MSK_UART_ENABLE_FLOW) \
|
||||
: (BM3803_REG.uart_ctrl3 &= ~MSK_UART_ENABLE_FLOW) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart3_loopback_config(uart_loopb) ( uart_loopb == ON \
|
||||
? (BM3803_REG.uart_ctrl3 |= MSK_UART_LOOPBACK) \
|
||||
: (BM3803_REG.uart_ctrl3 &= ~MSK_UART_LOOPBACK) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart3_enable() (BM3803_REG.uart_ctrl3 |= (MSK_UART_ENABLE_RX | MSK_UART_ENABLE_TX))
|
||||
#define uart3_disable() (BM3803_REG.uart_ctrl3 &= ~(MSK_UART_ENABLE_RX | MSK_UART_ENABLE_TX))
|
||||
|
||||
@@ -144,17 +144,17 @@
|
||||
(reg &= ~(MSK_UART_ENABLE_RXIT | MSK_UART_ENABLE_TXIT)) \
|
||||
) \
|
||||
) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart_flow_ctrl_config(reg, uart_flow) ((uart_flow == ON) ? \
|
||||
(reg |= MSK_UART_ENABLE_FLOW) : \
|
||||
(reg &= ~MSK_UART_ENABLE_FLOW) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart_loopback_config(reg, uart_loopb) ((uart_loopb == ON) ? \
|
||||
(reg |= MSK_UART_LOOPBACK) : \
|
||||
(reg &= ~MSK_UART_LOOPBACK) \
|
||||
)
|
||||
)
|
||||
|
||||
#define uart_enable(reg) (reg |= (MSK_UART_ENABLE_RX | MSK_UART_ENABLE_TX))
|
||||
#define uart_disable(reg) (reg &= ~(MSK_UART_ENABLE_RX | MSK_UART_ENABLE_TX))
|
||||
|
||||
@@ -242,7 +242,7 @@ fix_pil:
|
||||
cmp %l4, %g0
|
||||
be do_irq
|
||||
nop
|
||||
add %l4, 240, %l3 ! l3 = extended vector number
|
||||
add %l4, 240, %l3 ! l3 = extended vector number
|
||||
do_irq:
|
||||
! o1 = 2nd arg = address of the ISF
|
||||
! WAS LOADED WHEN ISF WAS SAVED!!!
|
||||
|
||||
@@ -164,9 +164,9 @@ sys_call5: /* %o0 holds the syscall number, arguments in %o1, %o2, %o3, %o4 and
|
||||
|
||||
/* Issue the ECALL opcode to perform a SW interrupt to the OS */
|
||||
ta 8; ! syscall 8
|
||||
nop;
|
||||
nop;
|
||||
nop;
|
||||
nop;
|
||||
nop;
|
||||
nop;
|
||||
|
||||
jmp %o7 + 8
|
||||
nop
|
||||
|
||||
Reference in New Issue
Block a user