From 4c4c4cd044978d9f72a872b1b8f674cd6f061c1b Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Wed, 1 Feb 2017 18:36:22 -0800 Subject: PRCI: This doesn't exist on the Arty and potentially other devices, so exclude it if there is not PRCI_BASE_ADDR on the system. --- bsp/drivers/fe300prci/fe300prci_driver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bsp') diff --git a/bsp/drivers/fe300prci/fe300prci_driver.c b/bsp/drivers/fe300prci/fe300prci_driver.c index 0e555a6..8491554 100644 --- a/bsp/drivers/fe300prci/fe300prci_driver.c +++ b/bsp/drivers/fe300prci/fe300prci_driver.c @@ -1,7 +1,9 @@ // See LICENSE file for license details -#include "fe300prci/fe300prci_driver.h" #include "platform.h" + +#ifdef PRCI_BASE_ADDR +#include "fe300prci/fe300prci_driver.h" #include #define rdmcycle(x) { \ @@ -245,3 +247,5 @@ uint32_t PRCI_set_hfrosctrim_for_f_cpu(uint32_t f_cpu, PRCI_freq_target target ) return cpu_freq; } + +#endif -- cgit v1.2.3