Hi,
is there a way to declare an array with const variables like:
static const ushort RX_BUF_SIZE = 0x100;
typedef struct {
volatile ushort buf[RX_BUF_SIZE];
volatile unsigned head;
volatile unsigned tail;
volatile unsigned count;
} RxBuffer;
I've got the error: variable-size type declared outside of any function
Thanks,
Olaf
is there a way to declare an array with const variables like:
static const ushort RX_BUF_SIZE = 0x100;
typedef struct {
volatile ushort buf[RX_BUF_SIZE];
volatile unsigned head;
volatile unsigned tail;
volatile unsigned count;
} RxBuffer;
I've got the error: variable-size type declared outside of any function
Thanks,
Olaf
Comment