mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
migrate to latest pio; tweaks to PIO tests
This commit is contained in:
parent
06953cec55
commit
2387aa4dff
6 changed files with 12 additions and 8 deletions
|
|
@ -3,9 +3,8 @@
|
|||
use pio::Program;
|
||||
use pio::RP2040_MAX_PROGRAM_SIZE;
|
||||
|
||||
mod pio_generated;
|
||||
use pio_generated::utra::rp_pio;
|
||||
use pio_generated::*;
|
||||
use utralib::generated::*;
|
||||
use utralib::generated::utra::rp_pio;
|
||||
|
||||
#[cfg(feature="tests")]
|
||||
pub mod pio_tests;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
use crate::pio_generated::utra::rp_pio;
|
||||
use utralib::generated::utra::rp_pio;
|
||||
|
||||
use crate::*;
|
||||
use super::report_api;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use crate::*;
|
||||
use crate::pio_generated::utra::rp_pio;
|
||||
use utralib::utra::rp_pio;
|
||||
use super::report_api;
|
||||
|
||||
const SIM_SCALE_FACTOR: f32 = 200.0; // speedup over real time to have simulation finish in a reasonable amount of time
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use crate::pio_generated::utra::rp_pio;
|
||||
use utralib::generated::utra::rp_pio;
|
||||
use crate::*;
|
||||
use super::report_api;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use pio::RP2040_MAX_PROGRAM_SIZE;
|
||||
use crate::pio_generated::utra::rp_pio::{self, SFR_FDEBUG, SFR_FLEVEL, SFR_FSTAT, SFR_DBG_CFGINFO};
|
||||
use utralib::utra::rp_pio::{self, SFR_FDEBUG, SFR_FLEVEL, SFR_FSTAT, SFR_DBG_CFGINFO};
|
||||
use crate::*;
|
||||
use super::report_api;
|
||||
|
||||
|
|
|
|||
|
|
@ -131,6 +131,10 @@ pub fn pio_test(pl230: &mut Pl230) -> bool {
|
|||
sm_a.sm_set_enabled(false);
|
||||
a_prog.setup_default_config(&mut sm_a);
|
||||
sm_a.config_set_out_pins(0, 32);
|
||||
sm_a.sm_set_pindirs_with_mask(
|
||||
0xFFFF_FFFF,
|
||||
0xFFFF_FFFF
|
||||
);
|
||||
sm_a.config_set_clkdiv(133.0); // have it run slow so this test operates in the background
|
||||
sm_a.config_set_out_shift(false, true, 32);
|
||||
sm_a.sm_set_pindirs_with_mask(0x10, 0x10);
|
||||
|
|
@ -170,7 +174,7 @@ pub fn pio_test(pl230: &mut Pl230) -> bool {
|
|||
let mut state = 0x1111_0000;
|
||||
for d in region_a.iter_mut() {
|
||||
*d = state;
|
||||
state += 1;
|
||||
state += 0x0101_0101;
|
||||
}
|
||||
|
||||
cc_struct.channels[0].dst_end_ptr =
|
||||
|
|
|
|||
Loading…
Reference in a new issue