Skip to content

Commit

Permalink
Explain why we need the HSEM2 IRQ handler
Browse files Browse the repository at this point in the history
  • Loading branch information
taunusflieger committed Apr 17, 2024
1 parent e628aab commit c950458
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core1/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ use {
stm32h7hal_ext as hal_ext,
};

// This function handles HSEM interrupt request
// This function handles HSEM interrupt request only
// during initial startup. This interriupt handler
// gets replaced by the one in the HAL if the application
// uses the HSEM peripheral.
#[interrupt]
#[allow(non_snake_case)]
fn HSEM2() {
//let statusreg = pac::HSEM.misr(1).read();
// FIXME: the semaphore ID is hardcoded
pac::HSEM.ier(1).write(|w| w.set_ise(0, false));
pac::HSEM.icr(1).write(|w| w.set_isc(0, true));
Expand Down

0 comments on commit c950458

Please sign in to comment.