我想在我的项目中添加AppIO。它失败了。AppIO系统根本不起作用。它甚至不允许SysSoSoeleSimult.c编译。下面的函数更改会修复编译问题。BUF的演员做得不正确。之后,Appo仍然不起作用。这是关于和谐2Y02Y100B和MPLABX 3.51和XC32 1.42i开始与USB鼠标演示。并遵循了“简单”调试指令中的热点!解决:在MPLAB X IDISSIZEZT SysSconSoeleRead(const SysMuleEndex index index,int fd,Vult*Buf,SiZeStt计数){sisixt NUMLUTB=0;dBGET((char *)BUF,128);同时(*(char *)(BUF)+NUBEnter);= LynPiFor){NuthByth++;}返回计数;}
以上来自于百度翻译
以下为原文
I'm trying to add APPIO to my project. It fails.
The APPIO system doesn't work at all. It does not even allow the sys_console_sta
tic.c to compile.
The function change below fixes the compile problem. the cast of buf was done incorrectly.
After that APPIO still doesn't work. This is on h
ARMony 2_02_00b and MPLABX 3.51 and XC32 1.42
I started with the USB mouse demo. and followed the "simple" debug instructions in the
Hot!Solved: The ABSOLUTE simplest way to set up a AppIO Console Debug Session in MPLAB X IDE
ssize_t SYS_CONSOLE_Read(const SYS_MODULE_INDEX index, int fd, void *buf, size_t count )
{
size_t numBytes = 0;
DBGETS ((char*)buf, 128);
while ( *((char *)(buf) + numBytes) != LINE_FEED )
{
numBytes++;
}
return count;
}