mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix API for new code specification method
This commit is contained in:
parent
c1571479d6
commit
9d23703e45
4 changed files with 4 additions and 4 deletions
|
|
@ -84,7 +84,7 @@ impl AvTrng {
|
|||
bio_ss.claim_dynamic_pin(claimed_pin, &AvTrng::resource_spec().claimer)?;
|
||||
let config =
|
||||
CoreConfig { clock_mode: bao1x_api::bio::ClockMode::ExternalPin(BioPin::new(claimed_pin)) };
|
||||
bio_ss.init_core(resource_grant.cores[0], &avtrng_bio_code(), 0, config)?;
|
||||
bio_ss.init_core(resource_grant.cores[0], avtrng_bio_code(), config)?;
|
||||
|
||||
// power on
|
||||
iox.set_gpio_pin_value(power.0, power.1, bao1x_api::IoxValue::High);
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ impl Captouch {
|
|||
let resource_grant = bio_ss.claim_resources(&Self::resource_spec())?;
|
||||
let config =
|
||||
CoreConfig { clock_mode: bao1x_api::bio::ClockMode::ExternalPin(BioPin::new(pin.as_u8())) };
|
||||
bio_ss.init_core(resource_grant.cores[0], &captouch_sense_code(), 0, config)?;
|
||||
bio_ss.init_core(resource_grant.cores[0], captouch_sense_code(), config)?;
|
||||
|
||||
// claim pin resource - this only claims the resource, it does not configure it
|
||||
bio_ss.claim_dynamic_pin(pin.as_u8(), &Captouch::resource_spec().claimer)?;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ impl MacDemo {
|
|||
// claim core resource and initialize it
|
||||
let resource_grant = bio_ss.claim_resources(&Self::resource_spec())?;
|
||||
let config = CoreConfig { clock_mode: bao1x_api::bio::ClockMode::FixedDivider(0, 0) };
|
||||
bio_ss.init_core(resource_grant.cores[0], &mac_code(), 0, config)?;
|
||||
bio_ss.init_core(resource_grant.cores[0], mac_code(), config)?;
|
||||
bio_ss.set_core_run_state(&resource_grant, true);
|
||||
|
||||
// safety: fifo1 and fifo2 are stored in this object so they aren't Drop'd before the object is
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ impl Ws2812 {
|
|||
LedVariant::C => ws2812c_kernel(),
|
||||
};
|
||||
log::debug!("grant: {:?}", resource_grant);
|
||||
bio_ss.init_core(resource_grant.cores[0], &kernel, 0, config)?;
|
||||
bio_ss.init_core(resource_grant.cores[0], kernel, config)?;
|
||||
bio_ss.set_core_run_state(&resource_grant, true);
|
||||
|
||||
// claim pin resource - this only claims the resource, it does not configure it
|
||||
|
|
|
|||
Loading…
Reference in a new issue