mirror of https://github.com/ARMmbed/mbed-os.git
STM32: remove compilation warning
parent
15ec24e1b4
commit
5d80f9e98f
|
@ -513,6 +513,7 @@ void can_irq_set(can_t *obj, CanIrqType type, uint32_t enable)
|
|||
#include "can_device.h" // Specific to STM32 serie
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
static uint32_t can_irq_ids[CAN_NUM] = {0};
|
||||
static can_irq_handler irq_handler;
|
||||
|
@ -743,7 +744,7 @@ int can_frequency(can_t *obj, int f)
|
|||
}
|
||||
}
|
||||
if (status == 0) {
|
||||
error("can ESR 0x%04x.%04x + timeout status %d", (can->ESR & 0xFFFF0000) >> 16, (can->ESR & 0xFFFF), status);
|
||||
error("can ESR 0x%04" PRIx32 ".%04" PRIx32 " + timeout status %d", (can->ESR & 0xFFFF0000) >> 16, (can->ESR & 0xFFFF), status);
|
||||
}
|
||||
} else {
|
||||
error("can init request timeout\n");
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#if DEVICE_INTERRUPTIN
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <inttypes.h>
|
||||
#include "cmsis.h"
|
||||
#include "gpio_irq_api.h"
|
||||
#include "pinmap.h"
|
||||
|
@ -125,7 +126,7 @@ static void handle_interrupt_in(uint32_t irq_index, uint32_t max_num_pin_line)
|
|||
}
|
||||
}
|
||||
}
|
||||
error("Unexpected Spurious interrupt, index %ld\r\n", irq_index);
|
||||
error("Unexpected Spurious interrupt index %" PRIu32 "\n", irq_index);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
#if DEVICE_I2C
|
||||
|
||||
#include <string.h>
|
||||
#include "cmsis.h"
|
||||
#include "pinmap.h"
|
||||
#include "PeripheralPins.h"
|
||||
|
|
Loading…
Reference in New Issue