RISC-V Meaty Skeleton with QEMU virt board: Difference between revisions

Jump to navigation Jump to search
m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
m (Bot: Replace deprecated source tag with syntaxhighlight)
m (Bot: Replace deprecated source tag with syntaxhighlight)
 
Line 264:
====src/common/common.c====
 
<sourcesyntaxhighlight lang="c">
#include <stdarg.h>
#include "common.h"
Line 282:
asm volatile ("wfi");
}
</syntaxhighlight>
</source>
 
====src/syscon/syscon.h====
Line 302:
====src/syscon/syscon.c====
 
<sourcesyntaxhighlight lang="c">
#include <stdint.h>
#include "syscon.h"
Line 316:
*(uint32_t *)SYSCON_ADDR = 0x7777;
}
</syntaxhighlight>
</source>
 
====src/uart/uart.h====
 
<sourcesyntaxhighlight lang="c">
#ifndef UART_H
#define UART_H
Line 337:
 
#endif
</syntaxhighlight>
</source>
 
====src/uart/uart.c====
 
<sourcesyntaxhighlight lang="c">
#include <stddef.h>
#include <stdint.h>
Line 563:
va_end(arg);
}
</syntaxhighlight>
</source>
 
====src/kmain.c====
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu