Skip to content

Commit

Permalink
Do not build for STM32MP1xx
Browse files Browse the repository at this point in the history
Bootloader management is not applicable for this serie.

Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Sep 18, 2020
1 parent 3da8f2d commit a37e822
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/SrcWrapper/src/stm32/bootloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/*
* STM32 built-in bootloader in system memory support
*/

#if !defined(STM32MP1xx)
static const uint32_t BOOTLOADER_DELAY_MS = 250;
static bool BootIntoBootloaderAfterReset;
static uint32_t countdown = 0;
Expand Down Expand Up @@ -134,15 +134,18 @@ void cancelBootloaderReset()
{
countdown = 0;
}
#endif /* !STM32MP1xx */

/**
* Bootloader systick handler, should be called every ms
*/
void bootloaderSystickHandler()
{
#ifndef STM32MP1xx
if (countdown && --countdown == 0) {
jumpToBootloaderRequested();
}
#endif /* !STM32MP1xx */
}

/*
Expand Down

0 comments on commit a37e822

Please sign in to comment.