ableos/sysdata/programs/dt_buffer_test/src/main.hb
koniifer 1eee33ce8b fix icky pointer misalignment
move dt_api to stn for ease of use
do away with now redundant strobe example (colour example is basically strobe now)
2024-10-14 18:54:53 +01:00

13 lines
331 B
Plaintext

.{dt} := @use("../../../libraries/stn/src/lib.hb")
main := fn(): int {
dt.get(int, "framebuffer/fb0/width\0")
dt.get(int, "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(int, "serial_ports/sp0/mapping\0")
return 0
}