This commit is contained in:
J / Jacob Babich
2022-04-17 20:08:48 -04:00
parent db033c7ee6
commit d875364deb
4 changed files with 215 additions and 163 deletions

View File

@@ -2,10 +2,12 @@ use crate::gpio::ports::{setup_gpio_port, Port, PortOptions, UsablePort};
pub struct UsableBoard;
impl UsableBoard {
pub fn setup_gpio_port(&self, port: Port, options: PortOptions) -> UsablePort {
pub fn setup_gpio_port(&mut self, port: Port, options: PortOptions) -> UsablePort {
setup_gpio_port(port, options)
}
// TODO: have a no_op function here if so desired
// 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