mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
change the pin set API to something more usable
This commit is contained in:
parent
92180af349
commit
b49856ce7b
1 changed files with 3 additions and 2 deletions
|
|
@ -484,7 +484,7 @@ pub fn setup_trng_power_pin<T: IoSetup + IoGpio>(iox: &T) -> (IoxPort, u8) {
|
|||
(port, pin)
|
||||
}
|
||||
|
||||
pub fn setup_trng_input_pin<T: IoSetup + IoGpio>(iox: &T) -> u8 {
|
||||
pub fn setup_trng_input_pin<T: IoSetup + IoGpio>(iox: &T) -> (IoxPort, u8) {
|
||||
let (port, pin) = (IoxPort::PC, 15);
|
||||
iox.setup_pin(
|
||||
port,
|
||||
|
|
@ -496,7 +496,8 @@ pub fn setup_trng_input_pin<T: IoSetup + IoGpio>(iox: &T) -> u8 {
|
|||
None,
|
||||
Some(IoxDriveStrength::Drive2mA),
|
||||
);
|
||||
iox.set_bio_bit_from_port_and_pin(port, pin).expect("Couldn't allocate TRNG input pin")
|
||||
iox.set_bio_bit_from_port_and_pin(port, pin).expect("Couldn't allocate TRNG input pin");
|
||||
(port, pin)
|
||||
}
|
||||
|
||||
pub fn setup_dcdc2_pin<T: IoSetup + IoGpio>(iox: &T) -> (IoxPort, u8) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue