⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logo.c

📁 一个小的嵌入式os
💻 C
字号:
#include "44b0x.h"
#include "gps_head.h"
#include "Cn_oS_head.h"
#include "test.h"
extern uart_put_string(char *p);
extern display_string(int x, int y, char * p, int color);
void delay_for_logo(void)
{
int a,b;
for (a=0;a<300;a++)
{

	for(b=0;b<0x65535;b++)
	{
		b=b;
	}
}
}

void LOGO_LCD(void)
{

display_char_big(10,10,'C',3);
display_char_big(42,10,'n',3);
display_char_big(72,10,'.',3);
display_char_big(104,10,'o',3);
display_char_big(136,10,'S',3);

display_char_big(10,90,'B',3);
display_char_big(42,90,'y',3);
display_char_big(72,90,' ',3);
display_char_big(104,90,'k',3);
display_char_big(136,90,'a',3);
display_char_big(168,90,'k',3);
display_char_big(200,90,'a',3);
delay_for_logo();


display_string(0,0,"\
Hi,I am kaka,this OS named \"Cn.oS\" ,\
#it means :China Operation System .I love China,\
#I love Earth,I hope we Can do someting to keep\
#ours earth Green!\
#sn.kaka@yahoo.com\
#The last build time:\
#The bauld is 115200,Normal,No parity,1 stop,8 bit.\
",3);

display_string(0,90,__DATE__,3);
display_string(0,105,__TIME__,3);
display_string(0,120,"\
You will see the Cn.oS to manager 24 tasks,and you can create \
more than 24 tasks,such as 64,66,128,201,222......and so on,\
Cn.oS is  (Preemptive Kerne real time!!) system,and you lead\
her to time-sharing mode any time even running......and the best,\
she is free and open core for everyone......\
I need communion.......\
",3);
display_string(0,190,"\
<Please input \"keep our earth green\" to start the system!through the UART>",0);





}

void LOGO_UART(void)
{

uart_put_string("\
=========================================================\n\
=========================================================\n\
=============Hi,I am kaka,this OS named \"Cn.oS\" ,==========\n\
======it means :China Operation System .I love China,===\n\
========I love Earth,I hope we Can do someting to keep======\n\
=====================ours earth Green!======================\n\
====================sn.kaka@yahoo.com======================\n\
=========================================================\n\
=================The last build time:====================\n\
");

uart_put_string(__DATE__);uart_put_string(",");
uart_put_string(__TIME__);
uart_put_string("\n\n\n\
You will see the Cn.oS to manager 24 tasks,and you can create \n\n\
more than 24 tasks,such as 64,66,128,201,222......and so on,\n\n\
Cn.oS is  (Preemptive Kerne real time!!) system,and you lead\n\n\
her to time-sharing mode any time even running......and the best,\n\n\
she is free and open core for everyone......\n\n\
I need communion.......\n\n\n\
");
uart_put_string("\n\
<Please input \"keep our earth green\" to start the system!>\n");


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -