1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/programs/dt_buffer_test/src/main.hb
2024-09-13 20:17:47 -05:00

14 lines
355 B
Plaintext

dt_api := @use("../../../libraries/dt_api/src/lib.hb");
.{dt_get} := dt_api
main := fn(): int {
dt_api.dt_get("framebuffer/fb0/width\0")
dt_api.dt_get("cpu/cpu0/architecture\0")
// Checking if the first detected serial port is memory mapped or port mapped
// 0 -> memory mapped
// 1 -> port mapped
dt_get("serial_ports/sp0/mapping\0")
return 0
}