arm/raspberrypi: ensure that correct RPI_PERIPHERAL_BASE is provided by raspberrypi.h

If the raspberrypi.h has been included without preceding inclussion
of bsp.h then BSP_IS_RPI2 has not been set for Raspberry Pi 2
BSP variant and bad things happen later.

The patch includes bspopts.h by raspberrypi.h and even includes
bsp.h in critical peripherals support.

Updates #2783
This commit is contained in:
Pavel Pisa
2016-05-21 23:50:31 +02:00
committed by Pavel Pisa
parent b11669a956
commit b5501ba492
2 changed files with 2 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
#ifndef LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H
#define LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H
#include <bspopts.h>
#include <stdint.h>
#include <bsp/utility.h>

View File

@@ -16,6 +16,7 @@
*
*/
#include <bsp.h>
#include <rtems.h>
#include <rtems/btimer.h>
#include <bsp/raspberrypi.h>