diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-08-16 19:08:23 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-09-25 12:59:12 +0000 |
commit | c4e6034e26b40cc440356eb35b3372b220806e5e (patch) | |
tree | 76ae74f3e4b1ad82478c0ffe3e0096035582627e /src/flash/nor/kinetis_ke.c | |
parent | a0bd3c9924870c3b8f428648410181040dabc33c (diff) | |
download | riscv-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/kinetis_ke.c')
-rw-r--r-- | src/flash/nor/kinetis_ke.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nor/kinetis_ke.c b/src/flash/nor/kinetis_ke.c index 513b072..dc3b37e 100644 --- a/src/flash/nor/kinetis_ke.c +++ b/src/flash/nor/kinetis_ke.c @@ -41,6 +41,7 @@ #include "imp.h" #include <helper/binarybuffer.h> #include <target/algorithm.h> +#include <target/arm_adi_v5.h> #include <target/armv7m.h> #include <target/cortex_m.h> |