From b5501ba492535a9868d182d77dd7c62529fc1c19 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sat, 21 May 2016 23:50:31 +0200 Subject: 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 --- c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h | 1 + c/src/lib/libbsp/arm/raspberrypi/misc/timer.c | 1 + 2 files changed, 2 insertions(+) (limited to 'c') diff --git a/c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h b/c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h index c33e22ab8e..e7bcd984d2 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h +++ b/c/src/lib/libbsp/arm/raspberrypi/include/raspberrypi.h @@ -20,6 +20,7 @@ #ifndef LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H #define LIBBSP_ARM_RASPBERRYPI_RASPBERRYPI_H +#include #include #include diff --git a/c/src/lib/libbsp/arm/raspberrypi/misc/timer.c b/c/src/lib/libbsp/arm/raspberrypi/misc/timer.c index e90af08290..1047b3e417 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/misc/timer.c +++ b/c/src/lib/libbsp/arm/raspberrypi/misc/timer.c @@ -16,6 +16,7 @@ * */ +#include #include #include #include -- cgit v1.2.3