Browse Source

HAL_ChibiOS: disable show_stack_usage in bootloader

master
Andrew Tridgell 6 years ago
parent
commit
51b4d54f70
  1. 4
      libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c
  2. 2
      libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.h

4
libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c

@ -76,7 +76,7 @@ void stm32_timer_set_channel_input(stm32_tim_t *tim, uint8_t channel, uint8_t in @@ -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) @@ -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

2
libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.h

@ -74,7 +74,7 @@ void malloc_init(void); @@ -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

Loading…
Cancel
Save