diff --git a/driver/bk1080.c b/driver/bk1080.c index 7c9d6bb..5afdbb0 100644 --- a/driver/bk1080.c +++ b/driver/bk1080.c @@ -21,8 +21,6 @@ #include "driver/system.h" #include "misc.h" -#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) - static const uint16_t BK1080_RegisterTable[] = { 0x0008, 0x1080, 0x0201, 0x0000, 0x40C0, 0x0A1F, 0x002E, 0x02FF, diff --git a/misc.h b/misc.h index 8a7b590..2d040a6 100644 --- a/misc.h +++ b/misc.h @@ -20,6 +20,8 @@ #include #include +#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) + #define IS_MR_CHANNEL(x) ((x) >= MR_CHANNEL_FIRST && (x) <= MR_CHANNEL_LAST) #define IS_FREQ_CHANNEL(x) ((x) >= FREQ_CHANNEL_FIRST && (x) <= FREQ_CHANNEL_LAST) #define IS_NOAA_CHANNEL(x) ((x) >= NOAA_CHANNEL_FIRST && (x) <= NOAA_CHANNEL_LAST)