misc: move ARRAY_SIZE macro into general.h
This commit is contained in:
parent
c136b919cd
commit
d16b0f8b47
|
@ -42,6 +42,8 @@
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "platform_support.h"
|
#include "platform_support.h"
|
||||||
|
|
||||||
|
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
|
||||||
|
|
||||||
extern uint32_t delay_cnt;
|
extern uint32_t delay_cnt;
|
||||||
|
|
||||||
enum BMP_DEBUG {
|
enum BMP_DEBUG {
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
|
|
||||||
|
|
||||||
static const char cortexa_driver_str[] = "ARM Cortex-A";
|
static const char cortexa_driver_str[] = "ARM Cortex-A";
|
||||||
|
|
||||||
static bool cortexa_attach(target *t);
|
static bool cortexa_attach(target *t);
|
||||||
|
|
|
@ -63,8 +63,6 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
|
|
||||||
|
|
||||||
static const char cortexm_driver_str[] = "ARM Cortex-M";
|
static const char cortexm_driver_str[] = "ARM Cortex-M";
|
||||||
|
|
||||||
static bool cortexm_vector_catch(target *t, int argc, char *argv[]);
|
static bool cortexm_vector_catch(target *t, int argc, char *argv[]);
|
||||||
|
|
Loading…
Reference in New Issue