beginning of refactoring
This commit is contained in:
16
src/lib/board.rs
Normal file
16
src/lib/board.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use crate::gpio::ports::{Port, PortOptions, UsablePort, setup_gpio_port};
|
||||
|
||||
pub struct UsableBoard;
|
||||
impl UsableBoard {
|
||||
pub fn setup_gpio_port(&self, port: Port, options: PortOptions) -> UsablePort {
|
||||
setup_gpio_port(port, options)
|
||||
}
|
||||
|
||||
// TODO: check page 704 for timers
|
||||
// TODO: impl Drop trait so that tasks all run before the main function ends?
|
||||
// TODO: examine page 670 for when (if) I do interrupts
|
||||
}
|
||||
|
||||
pub fn setup_board() -> UsableBoard {
|
||||
UsableBoard
|
||||
}
|
Reference in New Issue
Block a user