structure app output
This commit is contained in:
@@ -8,14 +8,21 @@ extern "C" void main() {
|
||||
//sys_test(1,2,3,4,5);
|
||||
|
||||
unsigned id = sys_getpid();
|
||||
char text[] = "testX";
|
||||
char text[] = "app X";
|
||||
text[4] = 0x30+id;
|
||||
char buf= 32 ;
|
||||
char buf = 32;
|
||||
|
||||
write(1, text, sizeof(text), 0, (int)id);
|
||||
|
||||
uint8_t cnt = 0;
|
||||
for (unsigned i = 1;; ++i) {
|
||||
write(1, text, sizeof(text));
|
||||
char msg[5];
|
||||
msg[0] = 0x30+cnt;
|
||||
msg[1] = 0;
|
||||
cnt=(cnt+1)%10;
|
||||
write(1, msg, sizeof(text), 6, (int)id);
|
||||
void* ptr= map(512);
|
||||
|
||||
|
||||
//sprintf(&buf, "ptr address: %x \n" , ptr);
|
||||
//unmap(ptr, 512);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user