Browse Source

HAL_ChibiOS: fixed build warnings

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
018c9ad40b
  1. 3
      libraries/AP_HAL_ChibiOS/hwdef/common/stm32_util.c

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

@ -15,6 +15,7 @@
#include "stm32_util.h" #include "stm32_util.h"
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
void stm32_timer_set_input_filter(stm32_tim_t *tim, uint8_t channel, uint8_t filter_mode) void stm32_timer_set_input_filter(stm32_tim_t *tim, uint8_t channel, uint8_t filter_mode)
{ {
@ -72,7 +73,7 @@ void show_stack_usage(void)
p++; p++;
} }
uint32_t stack_left = ((uint32_t)p) - stklimit; uint32_t stack_left = ((uint32_t)p) - stklimit;
printf("%s %u\n", tp->name, stack_left); printf("%s %u\n", tp->name, (unsigned)stack_left);
tp = chRegNextThread(tp); tp = chRegNextThread(tp);
} while (tp != NULL); } while (tp != NULL);
} }

Loading…
Cancel
Save