📄 task3_start.c
字号:
/*****************************************************************************
*
* Module : task3_start.c
* Description : this application provides the SLOS command line.
* OS : SLOS 0.09
* Platform : e7t
* History :
*
* November 5th 2001 - Andrew N. Sloss
* - created a simple command line calling task.
*
*****************************************************************************/
/*****************************************************************************
* DATATYPE
*****************************************************************************/
/*****************************************************************************
* IMPORT
*****************************************************************************/
#include "../core/all.h"
#include "../core/cli_shell.h"
/*****************************************************************************
* GLOBAL
*****************************************************************************/
/* none... */
/*****************************************************************************
* ROUTINES
*****************************************************************************/
/* -- banner ------------------------------------------------------------------
*
* Description : prints out the SLOS standard banner
*
* Parameters : none...
* Return : none...
* Notes :
*
*/
void banner (void)
{
printToHost ("\n\r");
printToHost ("\n\rSimple Little OS (0.09)\n\r");
printToHost ("- initialized ...... OK\n\r");
printToHost ("- running on ....... e7t \n\r");
printToHost ("\n\r");
printToHost ("\n\r");
}
/* -- C_EntryTask3 ------------------------------------------------------------
*
* Description : C entry point into application task3
*
* Parameters : none...
* Return : none...
* Other :
*
* This routine never terminates
*
*/
void C_EntryTask3(void)
{
volatile int delay;
/* -----------------------------------------------------------
*
* Open file stream
*
*
* -----------------------------------------------------------
*/
if(openHost (COM0)==TRUE)
{
banner ();
shell ();
}
/* -----------------------------------------------------------
*
* Closing the HostPort should *never* occur
*
* -----------------------------------------------------------
*/
closeHost ();
while (1)
{
delay=0xbeef003;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -