HAL_ChibiOS: disable show_stack_usage in bootloader

This commit is contained in:
Andrew Tridgell 2019-02-07 08:02:31 +11:00
parent a6e989e263
commit 51b4d54f70
2 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ void stm32_timer_set_channel_input(stm32_tim_t *tim, uint8_t channel, uint8_t in
}
}
#if CH_DBG_ENABLE_STACK_CHECK == TRUE
#if CH_DBG_ENABLE_STACK_CHECK == TRUE && !defined(HAL_BOOTLOADER_BUILD)
void show_stack_usage(void)
{
thread_t *tp;
@ -290,7 +290,7 @@ void peripheral_power_enable(void)
#endif
}
#if defined(STM32F7) || defined(STM32F4)
#if defined(STM32F7) || defined(STM32H7) || defined(STM32F4)
/*
read mode of a pin. This allows a pin config to be read, changed and
then written back

View File

@ -74,7 +74,7 @@ void malloc_init(void);
read mode of a pin. This allows a pin config to be read, changed and
then written back
*/
#if defined(STM32F7) || defined(STM32F4)
#if defined(STM32F7) || defined(STM32H7) || defined(STM32F4)
iomode_t palReadLineMode(ioline_t line);
#endif