arch/arm/samv7: fix compilation warnings
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
49d26e1b50
commit
4cd7e33b8d
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <inttypes.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
@ -186,7 +186,8 @@ static int sam_nmi(int irq, void *context, void *arg)
|
|||||||
static int sam_busfault(int irq, void *context, void *arg)
|
static int sam_busfault(int irq, void *context, void *arg)
|
||||||
{
|
{
|
||||||
up_irq_save();
|
up_irq_save();
|
||||||
_err("PANIC!!! Bus fault received: %08x\n", getreg32(NVIC_CFAULTS));
|
_err("PANIC!!! Bus fault received: %08" PRIx32 "\n",
|
||||||
|
getreg32(NVIC_CFAULTS));
|
||||||
PANIC();
|
PANIC();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -194,7 +195,8 @@ static int sam_busfault(int irq, void *context, void *arg)
|
|||||||
static int sam_usagefault(int irq, void *context, void *arg)
|
static int sam_usagefault(int irq, void *context, void *arg)
|
||||||
{
|
{
|
||||||
up_irq_save();
|
up_irq_save();
|
||||||
_err("PANIC!!! Usage fault received: %08x\n", getreg32(NVIC_CFAULTS));
|
_err("PANIC!!! Usage fault received: %08" PRIx32 "\n",
|
||||||
|
getreg32(NVIC_CFAULTS));
|
||||||
PANIC();
|
PANIC();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1123,10 +1123,10 @@ static int spi_setdelay(struct spi_dev_s *dev, uint32_t startdelay,
|
|||||||
uint32_t regval;
|
uint32_t regval;
|
||||||
unsigned int offset;
|
unsigned int offset;
|
||||||
|
|
||||||
spiinfo("cs=%d startdelay=%d\n", spics->cs, startdelay);
|
spiinfo("cs=%u startdelay=%" PRIu32 "\n", spics->cs, startdelay);
|
||||||
spiinfo("cs=%d stopdelay=%d\n", spics->cs, stopdelay);
|
spiinfo("cs=%u stopdelay=%" PRIu32 "\n", spics->cs, stopdelay);
|
||||||
spiinfo("cs=%d csdelay=%d\n", spics->cs, csdelay);
|
spiinfo("cs=%u csdelay=%" PRIu32 "\n", spics->cs, csdelay);
|
||||||
spiinfo("cs=%d ifdelay=%d\n", spics->cs, ifdelay);
|
spiinfo("cs=%u ifdelay=%" PRIu32 "\n", spics->cs, ifdelay);
|
||||||
|
|
||||||
offset = (unsigned int)g_csroffset[spics->cs];
|
offset = (unsigned int)g_csroffset[spics->cs];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user