mirror of https://github.com/ARMmbed/mbed-os.git
STM32: remove compilation warning
parent
1a2af2c7b6
commit
d81f320698
|
@ -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 "can_device.h" // Specific to STM32 serie
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
static uint32_t can_irq_ids[CAN_NUM] = {0};
|
static uint32_t can_irq_ids[CAN_NUM] = {0};
|
||||||
static can_irq_handler irq_handler;
|
static can_irq_handler irq_handler;
|
||||||
|
@ -743,7 +744,7 @@ int can_frequency(can_t *obj, int f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (status == 0) {
|
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 {
|
} else {
|
||||||
error("can init request timeout\n");
|
error("can init request timeout\n");
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#if DEVICE_INTERRUPTIN
|
#if DEVICE_INTERRUPTIN
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include "cmsis.h"
|
#include "cmsis.h"
|
||||||
#include "gpio_irq_api.h"
|
#include "gpio_irq_api.h"
|
||||||
#include "pinmap.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
|
#if DEVICE_I2C
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
#include "cmsis.h"
|
#include "cmsis.h"
|
||||||
#include "pinmap.h"
|
#include "pinmap.h"
|
||||||
#include "PeripheralPins.h"
|
#include "PeripheralPins.h"
|
||||||
|
|
Loading…
Reference in New Issue