mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add a wfi specifier to the bio clock change api
this indicates if we're going into or out of wfi - this matters because the clock rate asymmetry can be quite great, and the calling function can have different optimizations for each mode of operation
This commit is contained in:
parent
d30ef2f197
commit
50dcf7880f
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ pub trait BioApi<'a> {
|
|||
fn update_bio_freq(&mut self, freq: u32) -> u32;
|
||||
|
||||
/// Called before frequency changes to activate any application-specific callbacks
|
||||
/// to avoid glitches.
|
||||
fn prep_freq_change(&mut self);
|
||||
/// to avoid glitches. `into_wfi` specifies if we're about to enter a WFI state.
|
||||
fn prep_freq_change(&mut self, into_wfi: bool);
|
||||
|
||||
/// Returns the frequency, in Hz, of the incoming clock to the BIO cores.
|
||||
fn get_bio_freq(&self) -> u32;
|
||||
|
|
|
|||
Loading…
Reference in a new issue