initial commit

This commit is contained in:
2025-08-02 06:09:31 +03:00
commit 00015ffc03
85 changed files with 62051 additions and 0 deletions

11
FIRMWARE/errno.c Normal file
View File

@@ -0,0 +1,11 @@
// Sometimes __errno is not linked, here is a dummy replacement.
// Note that __errno is a function that returns a pointer to the
// actual __errno (this is for multithreading). Made me bang my
// head to the wall (and made tinyraytracer crash because powf()
// was *calling* __errno).
int* __errno() {
static int val = 0;
return &val;
}