improve formatting & timing slightly

This commit is contained in:
bunnie 2026-01-06 15:43:50 +08:00
parent d1a3eb4b58
commit 079ec33134

View file

@ -194,6 +194,11 @@ bio_code!(ws2812b_kernel, WS2812B_START, WS2812B_END,
"and x13, x12, x10", // the bit we're contemplating is at bit 23 position, extract it into x13 "and x13, x12, x10", // the bit we're contemplating is at bit 23 position, extract it into x13
"bne x13, x0, 40f", // if 1, go to 40f, where the 1 routine is "bne x13, x0, 40f", // if 1, go to 40f, where the 1 routine is
"mv x20, x0", // snap to quantum before doing the send routine - this improves timing uniformity of high pulses
// at the expense of T1L time being a little out of spec, but this is better-tolerated than T0H time being variable.
// this quantum snap has to be introduced here because snap quantum to output makes the ws2812 driver not
// composable with other BIO applications
// zero routine // zero routine
// 2 hi // 2 hi
"mv x22, x4", // sets to 1 "mv x22, x4", // sets to 1