Skip to content

Commit

Permalink
boards/Arduino: Remove hard-coded M4 app addr.
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader committed Oct 31, 2024
1 parent 7625525 commit 12f6d62
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
11 changes: 0 additions & 11 deletions ports/stm32/boards/ARDUINO_GIGA/board_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,4 @@ void GIGA_board_low_power(int mode) {
// Enable QSPI deepsleep for modes 1 and 2
mp_spiflash_deepsleep(&spi_bdev.spiflash, (mode != 0));
#endif

#if defined(M4_APP_ADDR)
// Signal Cortex-M4 to go to Standby mode.
if (mode == 2) {
__HAL_RCC_HSEM_CLK_ENABLE();
HAL_HSEM_FastTake(0);
HAL_HSEM_Release(0, 0);
__HAL_RCC_HSEM_CLK_DISABLE();
HAL_Delay(100);
}
#endif
}
11 changes: 0 additions & 11 deletions ports/stm32/boards/ARDUINO_OPTA/board_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,4 @@ void OPTA_board_low_power(int mode) {
// Enable QSPI deepsleep for modes 1 and 2
mp_spiflash_deepsleep(&spi_bdev.spiflash, (mode != 0));
#endif

#if defined(M4_APP_ADDR)
// Signal Cortex-M4 to go to Standby mode.
if (mode == 2) {
__HAL_RCC_HSEM_CLK_ENABLE();
HAL_HSEM_FastTake(0);
HAL_HSEM_Release(0, 0);
__HAL_RCC_HSEM_CLK_DISABLE();
HAL_Delay(100);
}
#endif
}
11 changes: 0 additions & 11 deletions ports/stm32/boards/ARDUINO_PORTENTA_H7/board_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,4 @@ void PORTENTA_board_low_power(int mode) {
// Enable QSPI deepsleep for modes 1 and 2
mp_spiflash_deepsleep(&spi_bdev.spiflash, (mode != 0));
#endif

#if defined(M4_APP_ADDR)
// Signal Cortex-M4 to go to Standby mode.
if (mode == 2) {
__HAL_RCC_HSEM_CLK_ENABLE();
HAL_HSEM_FastTake(0);
HAL_HSEM_Release(0, 0);
__HAL_RCC_HSEM_CLK_DISABLE();
HAL_Delay(100);
}
#endif
}

0 comments on commit 12f6d62

Please sign in to comment.