diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-29 22:39:10 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-29 22:39:10 +0300 |
| commit | 50a9b6780e04ae27cd03323d7fec02e15f7d3086 (patch) | |
| tree | 70b4121117dd401bd81d639cb01978080c9a420c /tests/starved_mesh/test.c | |
| parent | 82c77b22605d691884be4c4e1e6bae8d66598d02 (diff) | |
| download | gran-50a9b6780e04ae27cd03323d7fec02e15f7d3086.tar.gz gran-50a9b6780e04ae27cd03323d7fec02e15f7d3086.zip | |
remove starved mesh test
+ Essentially equivalent to node2d test, just worse
Diffstat (limited to 'tests/starved_mesh/test.c')
| -rw-r--r-- | tests/starved_mesh/test.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tests/starved_mesh/test.c b/tests/starved_mesh/test.c deleted file mode 100644 index 3bde7ca..0000000 --- a/tests/starved_mesh/test.c +++ /dev/null @@ -1,47 +0,0 @@ -#define X 16 -#define Y 16 - -void _start(unsigned short x, unsigned short y) -{ - volatile unsigned long *counter = (unsigned long *)((unsigned long)1 << - 48); - volatile char *uart = (char *)4096; - - /* very hacky, not recommended but good enough for testing */ - if (x == 0 && y == 2) { - *counter = 0; - *uart = '0'; - *uart = '\n'; - } - else - while (*counter != (((unsigned long)x << 16) | y)) - ; - - *uart = '('; - /* [0 - 16] as two octal numbers */ - *uart = ((x >> 3) & 0x7) + '0'; - *uart = ((x >> 0) & 0x7) + '0'; - - *uart = ','; - *uart = ' '; - - *uart = ((y >> 3) & 0x7) + '0'; - *uart = ((y >> 0) & 0x7) + '0'; - - *uart = ')'; - *uart = '\n'; - - if (x == 15 && y == 15) - asm ("ebreak\n"); - - if (y == 15) { - x++; - y = 0; - } - else - y++; - - *counter = ((unsigned long)x << 16) | y; - while (1) - ; -} |
