Fixes for our chprint on ChibiOS 3.x

This commit is contained in:
Fabien Poussin 2017-03-31 15:58:02 +02:00
parent 3022e23b4d
commit cef933d22d
1 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ char *ftoa(char *p, double num, unsigned long precision) {
#endif #endif
#include "error_handling.h" #include "error_handling.h"
int getRemainingStack(Thread *otp); int getRemainingStack(thread_t *otp);
/** /**
* @brief System formatted output function. * @brief System formatted output function.
@ -129,7 +129,7 @@ int getRemainingStack(Thread *otp);
void chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap) { void chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap) {
char *p, *s, c, filler; char *p, *s, c, filler;
int i, precision, width; int i, precision, width;
bool_t is_long, left_align; bool is_long, left_align;
long l; long l;
#if CHPRINTF_USE_FLOAT #if CHPRINTF_USE_FLOAT
float f; float f;
@ -138,7 +138,7 @@ void chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap) {
char tmpbuf[MAX_FILLER + 1]; char tmpbuf[MAX_FILLER + 1];
#endif #endif
efiAssertVoid(getRemainingStack(chThdSelf()) > 64, "lowstck#1c"); efiAssertVoid(getRemainingStack(chThdGetSelfX()) > 64, "lowstck#1c");
while (TRUE) { while (TRUE) {