forked from Imagelibrary/rtems
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:
@@ -20,6 +20,7 @@
|
|||||||
#ifndef LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H
|
#ifndef LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H
|
||||||
#define LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H
|
#define LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H
|
||||||
|
|
||||||
|
#include <bspopts.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <bsp/utility.h>
|
#include <bsp/utility.h>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <bsp.h>
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <rtems/btimer.h>
|
#include <rtems/btimer.h>
|
||||||
#include <bsp/raspberrypi.h>
|
#include <bsp/raspberrypi.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user