mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
extract the peripheral reset line
This commit is contained in:
parent
346d7cd4d4
commit
e77d412bad
1 changed files with 15 additions and 0 deletions
|
|
@ -233,6 +233,21 @@ pub fn setup_camera_pins<T: IoSetup + IoGpio>(iox: &T) -> (IoxPort, u8) {
|
|||
(IoxPort::PC, 14)
|
||||
}
|
||||
|
||||
pub fn setup_periph_reset_pin<T: IoSetup + IoGpio>(iox: &T) -> (IoxPort, u8) {
|
||||
let (port, pin) = (IoxPort::PC, 6);
|
||||
iox.setup_pin(
|
||||
port,
|
||||
pin,
|
||||
Some(IoxDir::Output),
|
||||
Some(IoxFunction::Gpio),
|
||||
None,
|
||||
Some(IoxEnable::Enable),
|
||||
None,
|
||||
Some(IoxDriveStrength::Drive2mA),
|
||||
);
|
||||
(port, pin)
|
||||
}
|
||||
|
||||
/// returns the USB SE0 port and pin number
|
||||
pub fn setup_usb_pins<T: IoSetup + IoGpio>(iox: &T) -> (IoxPort, u8) {
|
||||
const SE0_PIN: u8 = 5;
|
||||
|
|
|
|||
Loading…
Reference in a new issue