diff --git a/deps/litex b/deps/litex index 7af1e5f..45db71b 160000 --- a/deps/litex +++ b/deps/litex @@ -1 +1 @@ -Subproject commit 7af1e5fbc83d925f1282a7d30b4b85b70c0c0a01 +Subproject commit 45db71bf5eba10fda187f45790bda92c4d44577b diff --git a/firmware/litex-fw/src/main.rs b/firmware/litex-fw/src/main.rs index 1b165ff..7adf705 100644 --- a/firmware/litex-fw/src/main.rs +++ b/firmware/litex-fw/src/main.rs @@ -99,6 +99,17 @@ unsafe fn irq_handler() { let ix = ((ch0raw as i32 * (FB_SIZE_X) as i32) >> 16) as usize; let iy = ((ch1raw as i32 * (FB_SIZE_Y) as i32) >> 16) as usize; FB[((FB_SIZE_Y*(iy+FB_SIZE_Y/2)) + (ix+FB_SIZE_X/2-FB_XOFFS))] = 0xFF; + FB[((FB_SIZE_Y*(iy+FB_SIZE_Y/2+1)) + (ix+FB_SIZE_X/2-FB_XOFFS))] = 0xFF; + FB[((FB_SIZE_Y*(iy+FB_SIZE_Y/2-1)) + (ix+FB_SIZE_X/2-FB_XOFFS))] = 0xFF; + FB[((FB_SIZE_Y*(iy+FB_SIZE_Y/2)) + (ix+FB_SIZE_X/2-FB_XOFFS+1))] = 0xFF; + FB[((FB_SIZE_Y*(iy+FB_SIZE_Y/2)) + (ix+FB_SIZE_X/2-FB_XOFFS-1))] = 0xFF; + + /* + FB[((FB_SIZE_Y*(iy+FB_SIZE_Y/2)+1) + (ix+FB_SIZE_X/2-FB_XOFFS+1))] = 0x7F; + FB[((FB_SIZE_Y*(iy+FB_SIZE_Y/2)+1) + (ix+FB_SIZE_X/2-FB_XOFFS-1))] = 0x7F; + FB[((FB_SIZE_Y*(iy+FB_SIZE_Y/2)-1) + (ix+FB_SIZE_X/2-FB_XOFFS+1))] = 0x7F; + FB[((FB_SIZE_Y*(iy+FB_SIZE_Y/2)-1) + (ix+FB_SIZE_X/2-FB_XOFFS-1))] = 0x7F; + */ } peripherals.EURORACK_PMOD0.ev_pending().write(|w| w.bits(pending_subtype)); @@ -163,11 +174,14 @@ fn main() -> ! { */ for p in 0..(FB_SIZE_X*FB_SIZE_Y) { + /* if FB[p] > 32 { FB[p] -= 32; } else { FB[p] = 0; } + */ + FB[p] >>= 1; } }