Skip to content

SPI on PB3, 4, 5 #475

Discussion options

You must be logged in to vote

Got it working with the disable_jtag method:

    let (pa15, pb3, pb4) = afio.mapr.disable_jtag(gpioa.pa15, gpiob.pb3, gpiob.pb4);

    let sck = pb3.into_alternate_push_pull(&mut gpiob.crl);
    let miso = pb4.into_floating_input(&mut gpiob.crl);
    let mosi = gpiob.pb5.into_alternate_push_pull(&mut gpiob.crl);
    let cs = pa15.into_push_pull_output(&mut gpioa.crh);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexmadeathing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant