aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/cc3220sf.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2021-08-16 19:08:23 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2021-09-25 12:59:12 +0000
commitc4e6034e26b40cc440356eb35b3372b220806e5e (patch)
tree76ae74f3e4b1ad82478c0ffe3e0096035582627e /src/flash/nor/cc3220sf.c
parenta0bd3c9924870c3b8f428648410181040dabc33c (diff)
downloadriscv-openocd-c4e6034e26b40cc440356eb35b3372b220806e5e.zip
riscv-openocd-c4e6034e26b40cc440356eb35b3372b220806e5e.tar.gz
riscv-openocd-c4e6034e26b40cc440356eb35b3372b220806e5e.tar.bz2
armv7m.h: relax dependency from 'arm_adi_v5.h'
The include file 'armv7m.h' includes 'arm_adi_v5.h' only to get the definition of 'struct adiv5_ap', but doesn't need the struct content. Reducing the cross dependencies speeds-up the compile time during code development by avoiding re-compiling file. Relax the dependency by locally declaring 'struct adiv5_ap' in 'armv7m.h' and remove the include of 'arm_adi_v5.h'. Fix the other files that have now lost the includes file that 'arm_adi_v5.h' depends from. Change-Id: Ic0d40b17db6045fa43f348bda83eaf211a6b347d Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6468 Tested-by: jenkins Reviewed-by: Daniel Goehring <dgoehrin@os.amperecomputing.com> Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Diffstat (limited to 'src/flash/nor/cc3220sf.c')
-rw-r--r--src/flash/nor/cc3220sf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nor/cc3220sf.c b/src/flash/nor/cc3220sf.c
index b296538..723e605 100644
--- a/src/flash/nor/cc3220sf.c
+++ b/src/flash/nor/cc3220sf.c
@@ -21,6 +21,7 @@
#include "imp.h"
#include "cc3220sf.h"
+#include <helper/binarybuffer.h>
#include <helper/time_support.h>
#include <target/algorithm.h>
#include <target/armv7m.h>