mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
Most cosmetic; fix spelling of teriminate
This commit is contained in:
@@ -96,7 +96,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
/* Restore the original terminal mode and return the exit code */
|
||||
|
||||
simuart_teriminate();
|
||||
simuart_terminate();
|
||||
return g_exitcode;
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ void up_idle(void)
|
||||
* should not matter which, however.
|
||||
*/
|
||||
|
||||
static volatile spinlock_t lock;
|
||||
static volatile spinlock_t lock = SP_UNLOCKED;
|
||||
|
||||
/* The one that gets the lock is the one that executes the IDLE operations */
|
||||
|
||||
@@ -130,7 +130,6 @@ void up_idle(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CONFIG_NET_ETHERNET
|
||||
/* Run the network if enabled */
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ void simuart_start(void);
|
||||
int simuart_putc(int ch);
|
||||
int simuart_getc(void);
|
||||
bool simuart_checkc(void);
|
||||
void simuart_teriminate(void);
|
||||
void simuart_terminate(void);
|
||||
|
||||
/* up_uartwait.c **********************************************************/
|
||||
|
||||
|
||||
@@ -89,7 +89,6 @@ void simuart_wait(void);
|
||||
|
||||
static struct termios g_cooked;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
@@ -140,12 +139,11 @@ static void *simuart_thread(void *arg)
|
||||
|
||||
/* Check for failures (but don't do anything) */
|
||||
|
||||
if (nread == 1)
|
||||
for (; nread > 0; nread--)
|
||||
{
|
||||
#ifdef CONFIG_SIM_UART_DATAPOST
|
||||
sched_lock();
|
||||
#endif
|
||||
|
||||
/* Get the index to the next slot in the UART buffer */
|
||||
|
||||
prev = g_uarthead;
|
||||
@@ -276,7 +274,7 @@ int simuart_getc(void)
|
||||
int ch;
|
||||
|
||||
/* Locking the scheduler should eliminate the race conditions in the
|
||||
* unlikely case of mutliple reading threads.
|
||||
* unlikely case of multiple reading threads.
|
||||
*/
|
||||
|
||||
sched_lock();
|
||||
@@ -319,10 +317,10 @@ bool simuart_checkc(void)
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: simuart_teriminate
|
||||
* Name: simuart_terminate
|
||||
****************************************************************************/
|
||||
|
||||
void simuart_teriminate(void)
|
||||
void simuart_terminate(void)
|
||||
{
|
||||
/* Restore the original terminal mode */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user