mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
More trailing whilespace removal
This commit is contained in:
@@ -45,12 +45,12 @@
|
||||
|
||||
static inline void up_mdelay(uint32_t msec)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
static inline void up_udelay(uint32_t usec)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
*
|
||||
************************************************************/
|
||||
|
||||
#ifndef __ARCH_RGMP_INCLUDE_LIMITS_H
|
||||
#define __ARCH_RGMP_INCLUDE_LIMITS_H
|
||||
#ifndef __ARCH_RGMP_INCLUDE_LIMITS_H
|
||||
#define __ARCH_RGMP_INCLUDE_LIMITS_H
|
||||
|
||||
/************************************************************
|
||||
* Included Files
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Author: Yu Qiang <yuq825@gmail.com>
|
||||
#
|
||||
# This file is a part of NuttX:
|
||||
#
|
||||
#
|
||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
#
|
||||
#
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
void nuttx_arch_init(void)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void nuttx_arch_exit(void)
|
||||
|
||||
@@ -176,7 +176,7 @@ FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size)
|
||||
/* Align the frame_size */
|
||||
|
||||
frame_size = (frame_size + 3) & ~3;
|
||||
|
||||
|
||||
/* Is there already a stack allocated? Is it big enough? */
|
||||
|
||||
if (!tcb->stack_alloc_ptr || tcb->adj_stack_size <= frame_size) {
|
||||
@@ -280,7 +280,7 @@ void up_block_task(struct tcb_s *tcb, tstate_t task_state)
|
||||
}
|
||||
// If there are any pending tasks, then add them to the g_readytorun
|
||||
// task list now. It should be the up_realease_pending() called from
|
||||
// sched_unlock() to do this for disable preemption. But it block
|
||||
// sched_unlock() to do this for disable preemption. But it block
|
||||
// itself, so it's OK.
|
||||
if (g_pendingtasks.head) {
|
||||
warn("Disable preemption failed for task block itself\n");
|
||||
@@ -328,7 +328,7 @@ void up_unblock_task(struct tcb_s *tcb)
|
||||
#if CONFIG_RR_INTERVAL > 0
|
||||
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_TICK;
|
||||
#endif
|
||||
|
||||
|
||||
// Add the task in the correct location in the prioritized
|
||||
// g_readytorun task list.
|
||||
if (sched_addreadytorun(tcb) && !up_interrupt_context()) {
|
||||
@@ -402,7 +402,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
||||
struct tcb_s *nexttcb;
|
||||
// If there are any pending tasks, then add them to the g_readytorun
|
||||
// task list now. It should be the up_realease_pending() called from
|
||||
// sched_unlock() to do this for disable preemption. But it block
|
||||
// sched_unlock() to do this for disable preemption. But it block
|
||||
// itself, so it's OK.
|
||||
if (g_pendingtasks.head) {
|
||||
warn("Disable preemption failed for reprioritize task\n");
|
||||
@@ -439,7 +439,7 @@ void up_assert(const uint8_t *filename, int line)
|
||||
{
|
||||
fprintf(stderr, "Assertion failed at file:%s line: %d\n", filename, line);
|
||||
|
||||
// in interrupt context or idle task means kernel error
|
||||
// in interrupt context or idle task means kernel error
|
||||
// which will stop the OS
|
||||
// if in user space just terminate the task
|
||||
if (up_interrupt_context() || current_task->pid == 0) {
|
||||
@@ -523,7 +523,7 @@ int up_prioritize_irq(int irq, int priority)
|
||||
void up_sigdeliver(struct Trapframe *tf)
|
||||
{
|
||||
sig_deliver_t sigdeliver;
|
||||
|
||||
|
||||
pop_xcptcontext(¤t_task->xcp);
|
||||
sigdeliver = current_task->xcp.sigdeliver;
|
||||
current_task->xcp.sigdeliver = NULL;
|
||||
|
||||
@@ -88,7 +88,7 @@ void rtos_kfree(void *addr)
|
||||
|
||||
/**
|
||||
* The interrupt can be nested. The pair of rtos_enter_interrupt()
|
||||
* and rtos_exit_interrupt() make sure the context switch is
|
||||
* and rtos_exit_interrupt() make sure the context switch is
|
||||
* performed only in the last IRQ exit.
|
||||
*/
|
||||
void rtos_enter_interrupt(void)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Author: Yu Qiang <yuq825@gmail.com>
|
||||
#
|
||||
# This file is a part of NuttX:
|
||||
#
|
||||
#
|
||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
#
|
||||
#
|
||||
|
||||
@@ -310,7 +310,7 @@ static int up_attach(struct uart_dev_s *dev)
|
||||
int err;
|
||||
|
||||
err = rgmp_request_irq(priv->irq, &priv->action, 0);
|
||||
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
@@ -374,7 +374,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
struct inode *inode = filep->f_inode;
|
||||
struct uart_dev_s *dev = inode->i_private;
|
||||
struct up_dev_s *priv = (struct up_dev_s*)dev->priv;
|
||||
|
||||
|
||||
switch (cmd) {
|
||||
case COM_SET_BAUD:
|
||||
priv->baud = arg;
|
||||
@@ -546,7 +546,7 @@ static bool up_txempty(struct uart_dev_s *dev)
|
||||
* Name: up_serialinit
|
||||
*
|
||||
* Description:
|
||||
* Performs the low level UART initialization early in
|
||||
* Performs the low level UART initialization early in
|
||||
* debug so that the serial console will be available
|
||||
* during bootup. This must be called before up_serialinit.
|
||||
*
|
||||
@@ -554,7 +554,7 @@ static bool up_txempty(struct uart_dev_s *dev)
|
||||
|
||||
void up_earlyserialinit(void)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user