HAL_ChibiOS: fixed build warnings

This commit is contained in:
Andrew Tridgell 2018-06-01 20:51:59 +10:00
parent f25b95f287
commit 018c9ad40b
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#include "stm32_util.h"
#include <stdint.h>
#include <stdio.h>
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++;
}
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);
} while (tp != NULL);
}