platform: remove Peripherals param from board trait
This commit is contained in:
@@ -6,7 +6,7 @@ pub mod smart_leds_lib;
|
||||
|
||||
pub mod esp32;
|
||||
|
||||
use esp_idf_svc::hal::prelude::Peripherals;
|
||||
pub type DefaultBoard = esp32::Esp32Board;
|
||||
|
||||
use crate::render::{Output, Surfaces};
|
||||
use crate::task::Task;
|
||||
@@ -15,7 +15,7 @@ pub trait Board {
|
||||
type Output: Output;
|
||||
type Surfaces: Surfaces;
|
||||
|
||||
fn new(peripherals: Peripherals) -> Self;
|
||||
fn take() -> Self;
|
||||
fn output(&mut self) -> Self::Output;
|
||||
fn surfaces(&mut self) -> Self::Surfaces;
|
||||
fn system_tasks(&mut self) -> Vec<Box<dyn Task>>;
|
||||
|
Reference in New Issue
Block a user