arm/raspberrypi: resolve BSP warnings.

This commit is contained in:
Pavel Pisa
2016-06-28 17:07:02 +02:00
parent 68565b090e
commit b83c23e62a
5 changed files with 8 additions and 2 deletions

View File

@@ -35,6 +35,7 @@
#include <rtems/fb.h>
#include <rtems/framebuffer.h>
#include <rtems/score/atomic.h>
#include <rtems/bspIo.h>
#define SCREEN_WIDTH 1024
#define SCREEN_HEIGHT 768

View File

@@ -414,7 +414,7 @@ void rpi_video_init( void )
bytes_per_pixel = fb_var_info.bits_per_pixel / 8;
bytes_per_line = bytes_per_pixel * fb_var_info.xres;
bytes_per_char_line = RPI_FONT_HEIGHT * bytes_per_line;
fb_mem = fb_fix_info.smem_start;
fb_mem = RTEMS_DEVOLATILE( void *, fb_fix_info.smem_start );
column = 0;
row = 0;
nLines = 0;

View File

@@ -22,6 +22,7 @@
#include <bsp/irq.h>
#include <bsp/usart.h>
#include <bsp/raspberrypi.h>
#include <rtems/bspIo.h>
static void usart_delay(uint32_t n)
{

View File

@@ -29,6 +29,7 @@
#include <bsp/raspberrypi.h>
#include <bsp/linker-symbols.h>
#include <bsp/mmu.h>
#include <rtems/bspIo.h>
/*
** This sets the main exception vectors
@@ -201,7 +202,7 @@ rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
void bsp_interrupt_handler_default(rtems_vector_number vector)
{
printk("spurious interrupt: %u\n", vector);
printk("spurious interrupt: %lu\n", vector);
}
rtems_status_code bsp_interrupt_facility_initialize(void)

View File

@@ -255,8 +255,11 @@ typedef struct {
} body;
} bcm2835_mbox_tag_power_state;
#ifndef BCM2835_MAILBOX_SET_POWER_STATE_REQ_ON
/* Value is defined as a part of public VideoCore API */
#define BCM2835_MAILBOX_SET_POWER_STATE_REQ_ON (1 << 0)
#define BCM2835_MAILBOX_SET_POWER_STATE_REQ_WAIT (1 << 1)
#endif
/* Clocks */
#define BCM2835_MAILBOX_UCID_CLOCK_RESERVED 0x000000000