Skip to content

Commit 34eafae

Browse files
jonathanpallantthejpster
authored andcommitted
Fixes to run on new board
1 parent cb1ab44 commit 34eafae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The NBMC appears to the main Neotron system processor as an Expansion Device. As
2222

2323
### Neotron Pico
2424

25-
The NBMC firmware is designed to run on an ST Micro STM32F0 (STM32F031K6T6) microcontroller, as fitted to a [Neotron Pico](https://github.com/neotron-compute/neotron-pico).
25+
The NBMC firmware is designed to run on an ST Micro STM32F0 (STM32F030K6T6) microcontroller, as fitted to a [Neotron Pico](https://github.com/neotron-compute/neotron-pico).
2626

2727
See the [board-specific README](./neotron-bmc-pico/README.md)
2828

neotron-bmc-pico/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ mod app {
7777
led_power: PB0<Output<PushPull>>,
7878
/// The status LED (D1102)
7979
#[lock_free]
80-
_led_status: PB1<Output<PushPull>>,
80+
_buzzer_pwm: PB1<Output<PushPull>>,
8181
/// The FTDI UART header (J105)
8282
#[lock_free]
8383
serial: serial::Serial<pac::USART1, PA9<Alternate<AF1>>, PA10<Alternate<AF1>>>,
@@ -187,7 +187,7 @@ mod app {
187187
_pin_uart_cts,
188188
_pin_uart_rts,
189189
mut led_power,
190-
mut _led_status,
190+
mut _buzzer_pwm,
191191
button_power,
192192
button_reset,
193193
mut pin_dc_on,
@@ -226,7 +226,7 @@ mod app {
226226
serial.listen(serial::Event::Rxne);
227227

228228
led_power.set_low().unwrap();
229-
_led_status.set_low().unwrap();
229+
_buzzer_pwm.set_low().unwrap();
230230

231231
// Set EXTI15 to use PORT A (PA15)
232232
dp.SYSCFG.exticr4.write(|w| w.exti15().pa15());
@@ -249,7 +249,7 @@ mod app {
249249
_pin_uart_cts,
250250
_pin_uart_rts,
251251
led_power,
252-
_led_status,
252+
_buzzer_pwm,
253253
button_power,
254254
button_reset,
255255
state_dc_power_enabled: DcPowerState::Off,

0 commit comments

Comments
 (0)