this must be a silly question, but I don't understand it, so please enlighten me:
I'm trying to define an array of constant size as arrays need to have constant size in XC (or at least sizes known at compile time):
This just works fine:
Code: Select all
int main(){
uint8_t received[4];
return 0;
}
Code: Select all
static const int N = 4;
int main(){
uint8_t received[N];
return 0;
}