mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Rename ioreq to syscall
This commit is contained in:
parent
b79a107a3d
commit
61fe0e8647
20 changed files with 187 additions and 190 deletions
|
|
@ -24,14 +24,14 @@ static uint32_t syscall(uint32_t id, uint32_t param) {
|
|||
}
|
||||
|
||||
#define syscall_cast(id, x) syscall((uint32_t)id, (uint32_t)x)
|
||||
#define println(x) syscall_cast(IOREQ_PRINTLN, x)
|
||||
#define print(x) syscall_cast(IOREQ_PRINT, x)
|
||||
#define printd(x) syscall_cast(IOREQ_PRINTD, x)
|
||||
#define printx(x) syscall_cast(IOREQ_PRINTX, x)
|
||||
#define millis() syscall_cast(IOREQ_MILLIS, 0)
|
||||
#define printc() syscall_cast(IOREQ_PRINTC, 0)
|
||||
#define getc() syscall_cast(IOREQ_GETC, 0)
|
||||
#define yield() syscall_cast(IOREQ_YIELD, 0)
|
||||
#define println(x) syscall_cast(UVM32_SYSCALL_PRINTLN, x)
|
||||
#define print(x) syscall_cast(UVM32_SYSCALL_PRINT, x)
|
||||
#define printd(x) syscall_cast(UVM32_SYSCALL_PRINTD, x)
|
||||
#define printx(x) syscall_cast(UVM32_SYSCALL_PRINTX, x)
|
||||
#define millis() syscall_cast(UVM32_SYSCALL_MILLIS, 0)
|
||||
#define printc() syscall_cast(UVM32_SYSCALL_PRINTC, 0)
|
||||
#define getc() syscall_cast(UVM32_SYSCALL_GETC, 0)
|
||||
#define yield() syscall_cast(UVM32_SYSCALL_YIELD, 0)
|
||||
|
||||
#include "uvm32_common_custom.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue