flash/nor: move variable's declaration in C file
Variables should not be declared in the include file, otherwise multiple include will cause multiple instances. Move the declaration in the C file and make it static. Change-Id: I8b4884cba643a792a78df4e123aa324b19d92279 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7172 Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Tested-by: jenkins
This commit is contained in:
@@ -26,9 +26,4 @@
|
||||
#define FMC_ERASE_VALUE (FMC_DEFAULT_VALUE | FMC_ERASE_BIT)
|
||||
#define FMC_MERASE_VALUE (FMC_DEFAULT_VALUE | FMC_MERASE_BIT)
|
||||
|
||||
/* Flash helper algorithm for CC3220SF */
|
||||
const uint8_t cc3220sf_algo[] = {
|
||||
#include "../../../contrib/loaders/flash/cc3220sf/cc3220sf.inc"
|
||||
};
|
||||
|
||||
#endif /* OPENOCD_FLASH_NOR_CC3220SF_H */
|
||||
|
||||
Reference in New Issue
Block a user