Skip to content

Commit

Permalink
Rename USB interrupt handler.
Browse files Browse the repository at this point in the history
The name 'main' is just confusing.
  • Loading branch information
jonathanpallant committed Oct 4, 2024
1 parent 6dfee53 commit f91fed1
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nrf52-code/usb-app-solutions/src/bin/usb-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mod app {
}

#[task(binds = USBD, local = [usbd])]
fn main(cx: main::Context) {
fn handle_usb_interrupt(cx: main::Context) {
let usbd = cx.local.usbd;

while let Some(event) = usbd::next_event(usbd) {
Expand Down
2 changes: 1 addition & 1 deletion nrf52-code/usb-app-solutions/src/bin/usb-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod app {
}

#[task(binds = USBD, local = [usbd])]
fn main(cx: main::Context) {
fn handle_usb_interrupt(cx: main::Context) {
let usbd = cx.local.usbd;

while let Some(event) = usbd::next_event(usbd) {
Expand Down
2 changes: 1 addition & 1 deletion nrf52-code/usb-app-solutions/src/bin/usb-3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mod app {
}

#[task(binds = USBD, local = [usbd, ep0in])]
fn main(cx: main::Context) {
fn handle_usb_interrupt(cx: main::Context) {
let usbd = cx.local.usbd;
let ep0in = cx.local.ep0in;

Expand Down
2 changes: 1 addition & 1 deletion nrf52-code/usb-app-solutions/src/bin/usb-4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ mod app {
}

#[task(binds = USBD, local = [usbd, ep0in, state])]
fn main(cx: main::Context) {
fn handle_usb_interrupt(cx: main::Context) {
let usbd = cx.local.usbd;
let ep0in = cx.local.ep0in;
let state = cx.local.state;
Expand Down
2 changes: 1 addition & 1 deletion nrf52-code/usb-app-solutions/src/bin/usb-5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ mod app {
}

#[task(binds = USBD, local = [usbd, ep0in, state])]
fn main(cx: main::Context) {
fn handle_usb_interrupt(cx: main::Context) {
let usbd = cx.local.usbd;
let ep0in = cx.local.ep0in;
let state = cx.local.state;
Expand Down
2 changes: 1 addition & 1 deletion nrf52-code/usb-app/src/bin/usb-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mod app {
}

#[task(binds = USBD, local = [usbd])]
fn main(cx: main::Context) {
fn handle_usb_interrupt(cx: main::Context) {
let usbd = cx.local.usbd;

while let Some(event) = usbd::next_event(usbd) {
Expand Down
2 changes: 1 addition & 1 deletion nrf52-code/usb-app/src/bin/usb-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod app {
}

#[task(binds = USBD, local = [usbd])]
fn main(cx: main::Context) {
fn handle_usb_interrupt(cx: main::Context) {
let usbd = cx.local.usbd;

while let Some(event) = usbd::next_event(usbd) {
Expand Down
2 changes: 1 addition & 1 deletion nrf52-code/usb-app/src/bin/usb-3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mod app {
}

#[task(binds = USBD, local = [usbd, ep0in])]
fn main(cx: main::Context) {
fn handle_usb_interrupt(cx: main::Context) {
let usbd = cx.local.usbd;
let ep0in = cx.local.ep0in;

Expand Down
2 changes: 1 addition & 1 deletion nrf52-code/usb-app/src/bin/usb-4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mod app {
}

#[task(binds = USBD, local = [usbd, ep0in, state])]
fn main(cx: main::Context) {
fn handle_usb_interrupt(cx: main::Context) {
let usbd = cx.local.usbd;
let ep0in = cx.local.ep0in;
let state = cx.local.state;
Expand Down

0 comments on commit f91fed1

Please sign in to comment.