ulib Add term_getsizes() syscall

This commit is contained in:
2025-11-15 00:58:09 +01:00
parent 871c9cf439
commit 7da422fdb6
2 changed files with 5 additions and 0 deletions

View File

@ -186,3 +186,7 @@ int32_t ipc_mbusdttch(char *name) {
int32_t term_write(char *buffer, size_t len) { int32_t term_write(char *buffer, size_t len) {
return syscall(SYS_TERM_WRITE, (uint64_t)buffer, (uint64_t)len, 0, 0, 0, 0); return syscall(SYS_TERM_WRITE, (uint64_t)buffer, (uint64_t)len, 0, 0, 0, 0);
} }
int32_t term_getsizes(uint16_t *w, uint16_t *h) {
return syscall(SYS_TERM_GETSIZES, (uint64_t)w, (uint64_t)h, 0, 0, 0, 0);
}

View File

@ -55,5 +55,6 @@ int32_t ipc_mbusconsume(char *name, uint8_t *const buffer);
int32_t ipc_mbusattch(char *name); int32_t ipc_mbusattch(char *name);
int32_t ipc_mbusdttch(char *name); int32_t ipc_mbusdttch(char *name);
int32_t term_write(char *buffer, size_t len); int32_t term_write(char *buffer, size_t len);
int32_t term_getsizes(uint16_t *w, uint16_t *h);
#endif // ULIB_SYSTEM_SYSTEM_H_ #endif // ULIB_SYSTEM_SYSTEM_H_