Set blink pin to midi tx
This commit is contained in:
parent
85984963f4
commit
d5665b841c
@ -2,7 +2,7 @@
|
|||||||
target = "thumbv6m-none-eabi"
|
target = "thumbv6m-none-eabi"
|
||||||
|
|
||||||
[target.thumbv6m-none-eabi]
|
[target.thumbv6m-none-eabi]
|
||||||
runner = "probe-rs run --chip STM32F042C4T6"
|
runner = "probe-rs run --chip STM32F042C4Tx"
|
||||||
rustflags = [
|
rustflags = [
|
||||||
"-C", "link-arg=-Tlink.x",
|
"-C", "link-arg=-Tlink.x",
|
||||||
"-C", "link-arg=--nmagic",
|
"-C", "link-arg=--nmagic",
|
||||||
|
|||||||
@ -31,15 +31,15 @@ fn main() -> ! {
|
|||||||
|
|
||||||
// Configure PA5 as push-pull output (common LED pin)
|
// Configure PA5 as push-pull output (common LED pin)
|
||||||
let mut led = cortex_m::interrupt::free(|cs| {
|
let mut led = cortex_m::interrupt::free(|cs| {
|
||||||
gpioa.pa5.into_push_pull_output(cs)
|
gpioa.pa9.into_push_pull_output(cs)
|
||||||
});
|
});
|
||||||
|
|
||||||
// Blink loop
|
// Blink loop
|
||||||
loop {
|
loop {
|
||||||
led.set_high().ok();
|
led.set_high().ok();
|
||||||
delay.delay_ms(500u16);
|
delay.delay_ms(2000u16);
|
||||||
|
|
||||||
led.set_low().ok();
|
led.set_low().ok();
|
||||||
delay.delay_ms(500u16);
|
delay.delay_ms(2000u16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user