summaryrefslogtreecommitdiffstats
path: root/firmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware.c')
-rw-r--r--firmware.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/firmware.c b/firmware.c
index 80a4661..c39ebbd 100644
--- a/firmware.c
+++ b/firmware.c
@@ -45,14 +45,11 @@ void gray(uint8_t c)
if (gray_simple != gray_bitwise || gray_decoded != c)
while (1) asm volatile ("ebreak");
- output(gray_simple);
+ output(101);
}
void main()
{
- for (uint32_t counter = (2+4+32+64) << SHIFT_COUNTER_BITS;; counter++) {
- asm volatile ("" : : "r"(counter));
- if ((counter & ~(~0 << SHIFT_COUNTER_BITS)) == 0)
- gray(counter >> SHIFT_COUNTER_BITS);
- }
+ while (1)
+ output(0xAA);
}