2024-10-14 12:54:53 -05:00
|
|
|
.{dt} := @use("../../../libraries/stn/src/lib.hb")
|
2024-09-13 18:11:23 -05:00
|
|
|
|
2024-10-25 10:37:38 -05:00
|
|
|
main := fn(): void {
|
|
|
|
dt.get(void, "framebuffer/fb0/width\0")
|
|
|
|
dt.get(void, "cpu/cpu0/architecture\0")
|
2024-09-13 20:17:47 -05:00
|
|
|
|
|
|
|
// Checking if the first detected serial port is memory mapped or port mapped
|
|
|
|
// 0 -> memory mapped
|
|
|
|
// 1 -> port mapped
|
2024-10-25 10:37:38 -05:00
|
|
|
dt.get(void, "serial_ports/sp0/mapping\0")
|
2024-09-13 18:11:23 -05:00
|
|
|
|
2024-10-25 10:37:38 -05:00
|
|
|
return
|
2024-09-13 18:11:23 -05:00
|
|
|
}
|