【东软载波ESF0654 PDS开发板活动】测试RT-Thread 的kprintf

2020-03-11 19:35发布

创建线程任务1,实现对LED的翻转操作,其中还加入了rt_kprintf打印功能,main.c的具体代码如下:

#include "main.h"

/** @addtogroup Projects_Examples_MD
  * @{
  */

/** @addtogroup Examples
  * @{
  */
#define uchar unsigned char
#define uint  unsigned int
       
#define CS_0  md_gpio_set_pin_low(CS_GPIO_PORT, CS_GPIO_PIN)
#define CS_1  md_gpio_set_pin_high(CS_GPIO_PORT, CS_GPIO_PIN)
#define SCK_0 md_gpio_set_pin_low(SCK_GPIO_PORT, SCK_GPIO_PIN)
#define SCK_1 md_gpio_set_pin_high(SCK_GPIO_PORT, SCK_GPIO_PIN)

#define SID_0  md_gpio_set_pin_low(SID_GPIO_PORT, SID_GPIO_PIN)
#define SID_1  md_gpio_set_pin_high(SID_GPIO_PORT, SID_GPIO_PIN)
#define SID    md_gpio_get_input_data(SID_GPIO_PORT, SID_GPIO_PIN)
#define KEY  RE2

uchar i=0,j=0;
uchar yemiancount=0;
uchar const  bmp1[]=                                                 
{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x83,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x83,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x83,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x83,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x20,0x83,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x3F,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x3F,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x3F,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x3F,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xF8,0x3F,0x82,0x0F,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x30,0x00,0x18,0x01,0x80,0x0C,0x00,0x18,0x60,0x0F,0x00,0x7F,0xC0,0x01,0x81,
0x80,0x18,0x00,0x18,0x00,0xC0,0x07,0xFC,0x7F,0xFC,0xF8,0x30,0x60,0xC0,0xFF,0xC1,
0x87,0xFF,0xC0,0x18,0x0F,0xFC,0x18,0x0C,0x3C,0x60,0x7B,0x60,0x60,0xC0,0xC1,0x81,
0x80,0x30,0x0F,0xFF,0x80,0x18,0x1B,0xEC,0x19,0xF8,0x36,0xC0,0x7F,0xC0,0xFF,0x81,
0x80,0x30,0x00,0x18,0x00,0x30,0x1B,0x6C,0x7E,0x60,0x18,0x18,0x66,0x00,0xC1,0x81,
0x80,0x3F,0x03,0x18,0x00,0x60,0x1B,0x6C,0x1B,0xFC,0xFF,0xB0,0x63,0x00,0xFF,0x81,
0x80,0x33,0x01,0x98,0x00,0xC0,0x1B,0xEC,0x3D,0x98,0x18,0x60,0x79,0x80,0x36,0x01,
0x80,0x63,0x00,0xD8,0x01,0x80,0x1B,0x6C,0x3F,0xF8,0x3D,0xD8,0x6C,0xC1,0xB6,0xC1,
0x80,0x63,0x00,0x18,0x03,0x00,0x1B,0xEC,0x79,0x98,0x7E,0x30,0xC6,0x70,0xF7,0x81,
0x80,0xC3,0x00,0x18,0x07,0x00,0x1B,0x6C,0x79,0xF8,0xDB,0x61,0xB8,0x00,0x77,0x01,
0x81,0x9E,0x00,0x18,0x1D,0xC0,0x18,0x0C,0x19,0x98,0x18,0xC0,0x0E,0x00,0x36,0xC1,
0x83,0x0C,0x00,0x38,0x00,0x7F,0x18,0x1C,0x19,0xB8,0x1B,0x80,0x03,0x03,0xFF,0xE1,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
uchar const bmp2[]=                                                                                                                                                               
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0F,0xC0,0x00,0x00,0x00,0x00,0x1C,0x00,0x07,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x0F,0xF1,0xFF,0xFF,0xFC,0x00,0xFE,0x00,0x0D,0xE1,0xFF,0xFF,0xE0,0x00,0x00,0x00,
0x0F,0xFF,0xFF,0xFF,0xFF,0xC3,0xFF,0x00,0x0C,0x7F,0xFF,0xBF,0xFC,0x00,0x00,0x00,
0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x0C,0x00,0x00,0x00,0x1F,0x80,0x00,0x00,
0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x0C,0x00,0x00,0x00,0x03,0xE0,0x00,0x00,
0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x1C,0x00,0x00,0x00,0x00,0xF8,0x00,0x00,
0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x36,0x00,0x00,0x00,0x00,0x3C,0x00,0x00,
0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x62,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,
0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xF8,0x00,0xC3,0x00,0x00,0x00,0x00,0x07,0x00,0x00,
0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xF8,0x00,0x80,0x00,0x00,0x00,0x00,0x03,0x80,0x00,
0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x01,0x80,0x00,0x00,0x00,0x00,0x01,0x80,0x00,
0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,
0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,
0x7F,0xE3,0xFF,0xFF,0xFF,0xFF,0xFE,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,
0x7F,0xC1,0xFF,0xFF,0xFF,0x83,0xFE,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,
0x7F,0xE1,0xF8,0x00,0x0F,0x83,0xFE,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,
0x7F,0xE3,0xF0,0x00,0x03,0x87,0xFF,0x80,0x18,0x00,0x00,0x00,0x00,0x00,0x18,0x00,
0x7F,0xFF,0xE0,0x40,0x81,0xFF,0xFF,0x00,0x7C,0x00,0x00,0x00,0x00,0x00,0x18,0x00,
0x7F,0xFF,0xE0,0xE1,0xC1,0xFF,0xFF,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x18,0x00,
0x7F,0xFF,0xE0,0xC1,0xC1,0xFF,0xFF,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,
0x7F,0xFF,0xE0,0x00,0x81,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,
0xFF,0xFF,0xF0,0x00,0x03,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,
0xFF,0xFF,0xFC,0x00,0x0F,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,
0xFF,0xFF,0xFF,0x81,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x00,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x80,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x1D,0xFE,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x1D,0xFE,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x19,0x60,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x1B,0x60,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x19,0xE0,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x80,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,
0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,
0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,
0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,
0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,
0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,
0x3F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,
0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,
0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x01,0xC0,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,
0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0xC0,0x00,0x00,0x00,0x00,0x01,0x80,0x00,
0x1F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x60,0x00,0x00,0x00,0x00,0x03,0x80,0x00,
0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x70,0x00,0x00,0x00,0x00,0x03,0x00,0x00,
0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x38,0x00,0x00,0x00,0x00,0x06,0x00,0x00,
0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xF8,0x00,0x18,0x1F,0x7F,0xFB,0xFE,0x0E,0x00,0x00,
0x07,0xFF,0xFF,0xFF,0xFF,0xE7,0xF8,0x00,0x0C,0x3F,0xFF,0xFF,0xFE,0x18,0x00,0x00,
0x07,0xF8,0x0E,0x00,0x08,0x03,0xF0,0x00,0x0C,0x60,0x00,0x00,0x06,0x30,0x00,0x00,
0x03,0xF8,0x00,0x00,0x00,0x03,0xF0,0x00,0x0E,0x60,0x00,0x00,0x03,0xF0,0x00,0x00,
0x01,0xF0,0x00,0x00,0x00,0x01,0x80,0x00,0x03,0xC0,0x00,0x00,0x01,0xC0,0x00,0x00,
0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};                                                                                                                                                               
uchar const bmp3[]=
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7F,0x0F,0xC0,0x01,0x81,0xF0,0xF8,0x3C,0x06,0x00,0x0F,0x9E,0xF0,0x00,0x00,
0x00,0x31,0x98,0xC0,0x07,0x83,0x19,0x8C,0x6C,0x0E,0x00,0x18,0xCC,0x60,0x00,0x00,
0x00,0x36,0x18,0xC0,0x01,0x83,0x19,0x8C,0xC0,0x1E,0x00,0x18,0xCC,0x60,0x00,0x00,
0x00,0x36,0x30,0x00,0x01,0x83,0x19,0x8C,0xC0,0x36,0x00,0x18,0xCC,0x60,0x00,0x00,
0x00,0x3E,0x30,0x00,0x01,0x80,0x30,0xD8,0xF8,0x36,0x00,0x01,0x8C,0x60,0x00,0x00,
0x00,0x36,0x30,0x0F,0xF1,0x80,0x30,0x70,0xEC,0x66,0x3F,0xC1,0x8F,0xE0,0x00,0x00,
0x00,0x36,0x30,0x00,0x01,0x80,0x60,0xD8,0xC6,0x66,0x00,0x03,0x0C,0x60,0x00,0x00,
0x00,0x30,0x30,0x00,0x01,0x80,0xC1,0x8C,0xC6,0x7F,0x00,0x06,0x0C,0x60,0x00,0x00,
0x00,0x30,0x18,0xC0,0x01,0x81,0x81,0x8C,0xC6,0x06,0x00,0x0C,0x0C,0x60,0x00,0x00,
0x00,0x30,0x19,0x80,0x01,0x83,0x19,0x8C,0x6C,0x06,0x00,0x18,0xCC,0x60,0x00,0x00,
0x00,0x78,0x0F,0x00,0x07,0xE3,0xF8,0xF8,0x38,0x1F,0x00,0x1F,0xDE,0xF0,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x66,0x00,0x60,0x00,0x18,0x03,0x06,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x66,0x00,0x30,0x00,0x0C,0x01,0x83,0x00,0x7F,0xF0,0x00,0x00,0x00,
0x00,0x00,0x1F,0xFF,0xC7,0xFF,0xC3,0xFF,0xF1,0xBF,0xF8,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x66,0x06,0x00,0xC3,0x18,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x66,0x0C,0x01,0x83,0x18,0x06,0x1F,0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1F,0xFF,0xC3,0xFE,0x03,0xFF,0xE3,0xC3,0x01,0xFF,0xFC,0x00,0x00,0x00,
0x00,0x00,0x18,0x61,0x80,0x0C,0x03,0x36,0x00,0xDF,0xE0,0x06,0x00,0x00,0x00,0x00,
0x00,0x00,0x30,0x63,0x00,0x18,0x03,0x66,0x01,0x9B,0x60,0x06,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0xFE,0x00,0x30,0x03,0xFF,0xE1,0x9F,0xE0,0x66,0xC0,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x0F,0xFF,0xE3,0x66,0x01,0x9B,0x60,0x66,0x60,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x00,0x30,0x03,0x06,0x07,0x1B,0x60,0xC6,0x30,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x00,0x30,0x03,0xFF,0xF3,0x1F,0xE1,0x86,0x38,0x00,0x00,0x00,
0x00,0x00,0x06,0x7E,0x00,0x30,0x03,0x06,0x03,0x00,0x03,0x06,0x18,0x00,0x00,0x00,
0x00,0x00,0x06,0x6C,0x00,0x30,0x06,0x06,0x03,0x0C,0xC0,0x06,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x00,0xF0,0x06,0x06,0x03,0x0C,0x60,0x1E,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x00,0x60,0x0C,0x06,0x03,0x18,0x60,0x0C,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x01,0x83,0x80,0x00,0x03,0xFF,0xF8,0xCD,0x80,0x00,0x00,0x00,
0x00,0x00,0x07,0xFE,0x00,0xE3,0x03,0xFF,0xC0,0x00,0x60,0x6D,0x80,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x00,0xC6,0x03,0x00,0xC0,0x00,0x60,0x6F,0xF0,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x0F,0xFF,0xC3,0x00,0xC0,0xFE,0x60,0x19,0x80,0x00,0x00,0x00,
0x00,0x00,0x07,0xFE,0x00,0xC6,0x03,0x00,0xC0,0xC6,0x60,0x01,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x00,0xC6,0x03,0x00,0xC0,0xC6,0x63,0xFF,0xF8,0x00,0x00,0x00,
0x00,0x00,0x0F,0xFF,0x00,0xC6,0x03,0x00,0xC0,0xC6,0x60,0x66,0xC0,0x00,0x00,0x00,
0x00,0x00,0x0C,0x63,0x0F,0xFF,0xE3,0x00,0xC0,0xC6,0x60,0x66,0xC0,0x00,0x00,0x00,
0x00,0x00,0x0C,0x63,0x00,0xC6,0x03,0x00,0xC0,0xFE,0x60,0x6C,0xD8,0x00,0x00,0x00,
0x00,0x00,0x0C,0x63,0x00,0xC6,0x03,0x00,0xC0,0xC6,0x60,0x6C,0xD8,0x00,0x00,0x00,
0x00,0x00,0x0F,0xFF,0x00,0xC6,0x03,0xFF,0xC0,0x00,0x60,0x78,0x78,0x00,0x00,0x00,
0x00,0x00,0x0C,0x63,0x01,0x86,0x03,0x00,0xC0,0x03,0x60,0x60,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x01,0x86,0x03,0x00,0xC0,0x01,0xE0,0xF0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x03,0x06,0x00,0x00,0x00,0x00,0xC1,0x9F,0xFC,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
uchar const bmp4[]=
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7F,0x0F,0xC0,0x01,0x81,0xF0,0xF8,0x3C,0x06,0x00,0x0F,0x9E,0xF0,0x00,0x00,
0x00,0x31,0x98,0xC0,0x07,0x83,0x19,0x8C,0x6C,0x0E,0x00,0x18,0xCC,0x60,0x00,0x00,
0x00,0x36,0x18,0xC0,0x01,0x83,0x19,0x8C,0xC0,0x1E,0x00,0x18,0xCC,0x60,0x00,0x00,
0x00,0x36,0x30,0x00,0x01,0x83,0x19,0x8C,0xC0,0x36,0x00,0x01,0x8C,0x60,0x00,0x00,
0x00,0x3E,0x30,0x00,0x01,0x80,0x30,0xD8,0xF8,0x36,0x00,0x07,0x0C,0x60,0x00,0x00,
0x00,0x36,0x30,0x0F,0xF1,0x80,0x30,0x70,0xEC,0x66,0x3F,0xC1,0x8F,0xE0,0x00,0x00,
0x00,0x36,0x30,0x00,0x01,0x80,0x60,0xD8,0xC6,0x66,0x00,0x00,0xCC,0x60,0x00,0x00,
0x00,0x30,0x30,0x00,0x01,0x80,0xC1,0x8C,0xC6,0x7F,0x00,0x00,0xCC,0x60,0x00,0x00,
0x00,0x30,0x18,0xC0,0x01,0x81,0x81,0x8C,0xC6,0x06,0x00,0x18,0xCC,0x60,0x00,0x00,
0x00,0x30,0x19,0x80,0x01,0x83,0x19,0x8C,0x6C,0x06,0x00,0x19,0x8C,0x60,0x00,0x00,
0x00,0x78,0x0F,0x00,0x07,0xE3,0xF8,0xF8,0x38,0x1F,0x00,0x0F,0x1E,0xF0,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x66,0x00,0x60,0x00,0x18,0x03,0x06,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x66,0x00,0x30,0x00,0x0C,0x01,0x83,0x00,0x7F,0xF0,0x00,0x00,0x00,
0x00,0x00,0x1F,0xFF,0xC7,0xFF,0xC3,0xFF,0xF1,0xBF,0xF8,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x66,0x06,0x00,0xC3,0x18,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0x66,0x0C,0x01,0x83,0x18,0x06,0x1F,0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1F,0xFF,0xC3,0xFE,0x03,0xFF,0xE3,0xC3,0x01,0xFF,0xFC,0x00,0x00,0x00,
0x00,0x00,0x18,0x61,0x80,0x0C,0x03,0x36,0x00,0xDF,0xE0,0x06,0x00,0x00,0x00,0x00,
0x00,0x00,0x30,0x63,0x00,0x18,0x03,0x66,0x01,0x9B,0x60,0x06,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0xFE,0x00,0x30,0x03,0xFF,0xE1,0x9F,0xE0,0x66,0xC0,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x0F,0xFF,0xE3,0x66,0x01,0x9B,0x60,0x66,0x60,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x00,0x30,0x03,0x06,0x07,0x1B,0x60,0xC6,0x30,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x00,0x30,0x03,0xFF,0xF3,0x1F,0xE1,0x86,0x38,0x00,0x00,0x00,
0x00,0x00,0x06,0x7E,0x00,0x30,0x03,0x06,0x03,0x00,0x03,0x06,0x18,0x00,0x00,0x00,
0x00,0x00,0x06,0x6C,0x00,0x30,0x06,0x06,0x03,0x0C,0xC0,0x06,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x00,0xF0,0x06,0x06,0x03,0x0C,0x60,0x1E,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x00,0x60,0x0C,0x06,0x03,0x18,0x60,0x0C,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x03,0x03,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x01,0x83,0x80,0x00,0x03,0xFF,0xF8,0xCD,0x80,0x00,0x00,0x00,
0x00,0x00,0x07,0xFE,0x00,0xE3,0x03,0xFF,0xC0,0x00,0x60,0x6D,0x80,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x00,0xC6,0x03,0x00,0xC0,0x00,0x60,0x6F,0xF0,0x00,0x00,0x00,
0x00,0x00,0x06,0x66,0x0F,0xFF,0xC3,0x00,0xC0,0xFE,0x60,0x19,0x80,0x00,0x00,0x00,
0x00,0x00,0x07,0xFE,0x00,0xC6,0x03,0x00,0xC0,0xC6,0x60,0x01,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x00,0xC6,0x03,0x00,0xC0,0xC6,0x63,0xFF,0xF8,0x00,0x00,0x00,
0x00,0x00,0x0F,0xFF,0x00,0xC6,0x03,0x00,0xC0,0xC6,0x60,0x66,0xC0,0x00,0x00,0x00,
0x00,0x00,0x0C,0x63,0x0F,0xFF,0xE3,0x00,0xC0,0xC6,0x60,0x66,0xC0,0x00,0x00,0x00,
0x00,0x00,0x0C,0x63,0x00,0xC6,0x03,0x00,0xC0,0xFE,0x60,0x6C,0xD8,0x00,0x00,0x00,
0x00,0x00,0x0C,0x63,0x00,0xC6,0x03,0x00,0xC0,0xC6,0x60,0x6C,0xD8,0x00,0x00,0x00,
0x00,0x00,0x0F,0xFF,0x00,0xC6,0x03,0xFF,0xC0,0x00,0x60,0x78,0x78,0x00,0x00,0x00,
0x00,0x00,0x0C,0x63,0x01,0x86,0x03,0x00,0xC0,0x03,0x60,0x60,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x01,0x86,0x03,0x00,0xC0,0x01,0xE0,0xF0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x03,0x06,0x00,0x00,0x00,0x00,0xC1,0x9F,0xFC,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};

void delayus(void)
{
    uchar i;
    for(i=0;i<5 for(i=0;i xss=removed Dbyte=Dbyte temp1=temp2 TRISD=0X40; for(i=0;i for(i=0;i temp1=temp1 xss=removed for(i=0;i temp2=temp2 xss=removed for(i=0;i for (i=0;i for(j=0;j for(i=0;i for(i=0;i for(j=0;j while(*puts != '\0') uchar i=0,j k=0; for(i=0;i uint x=0,y for(i=0;i for(j=0;j for(j=0;j for(i=0;i for(j=0;j for(i=0;i for(j=0;j for(i=0;i for(j=0;j for(j=0;j for(i=0;i for(j=0;j for(j=0;j for(i=0;i for(j=0;j for(j=0;j>

191220vhvf9v2dvh2dhduz.jpg.thumb.jpg

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
5条回答
一路向北lm
2020-03-12 04:03
添加重映串口控制台到rt_kprintf,具体代码如下:
  1. void rt_hw_console_output(const char *str)
  2. {
  3.    rt_enter_critical();
  4.         while(*str!= '')
  5.         {
  6.            if(*str == ' ')
  7.                  {
  8.                          UsartSendByte(USART0, ' ');
  9.                           
  10.                  }
  11.                   UsartSendByte(USART0, *str++);
  12.         }
  13.         rt_exit_critical();
  14. }
复制代码

一周热门 更多>