Skip to content

Commit

Permalink
bump with submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
vk2seb committed Mar 31, 2024
1 parent 467e816 commit ca6756a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deps/litex
Submodule litex updated from 2bf54c to 1dccf5
2 changes: 1 addition & 1 deletion deps/litex_boards
10 changes: 7 additions & 3 deletions firmware/litex-fw/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ fn process(dsp: &mut KarlsenLpf, buf_out: &mut [i16], buf_in: &[i16]) {
*/

unsafe {
let ix = ((buf_in[N_CHANNELS*i+0] as i32 * (FB_SIZE_X/2) as i32) >> 16) as usize;
let iy = ((buf_in[N_CHANNELS*i+1] as i32 * (FB_SIZE_Y/2) as i32) >> 16) as usize;
FB[(FB_SIZE_Y*(iy+FB_SIZE_Y/2)) + (ix)] = 0xFF;
let ix = ((buf_in[N_CHANNELS*i+0] as i32 * (FB_SIZE_X) as i32) >> 16) as usize;
let iy = ((buf_in[N_CHANNELS*i+1] as i32 * (FB_SIZE_Y) as i32) >> 16) as usize;
FB[(FB_SIZE_Y*(iy+FB_SIZE_Y/2)) + (ix+FB_SIZE_X/4)] = 0xFF;
FB[(FB_SIZE_Y*(iy+1+FB_SIZE_Y/2)) + (ix+FB_SIZE_X/4)] = 0xDF;
FB[(FB_SIZE_Y*(iy-1+FB_SIZE_Y/2)) + (ix+FB_SIZE_X/4)] = 0xDF;
FB[(FB_SIZE_Y*(iy+FB_SIZE_Y/2)) + (ix+1+FB_SIZE_X/4)] = 0xDF;
FB[(FB_SIZE_Y*(iy+FB_SIZE_Y/2)) + (ix+1+FB_SIZE_X/4)] = 0xDF;
}

/*
Expand Down

0 comments on commit ca6756a

Please sign in to comment.