This is actually my first post on the forums, and not sure if this is the right section or not
I have a small problem :
I am using an ATmega324pa and need to have arbitrary long sequence of bits (well the size will not change after compilation, it will be known at compilation)
The closest thing to this would be the std_logic_vector from VHDL
In fact, i need something like :
#define ARRAY_SIZE 2048 boolArray myArray[ARRAY_SIZE];
and then, i coud do something like
#define ONE 0b1 #define ZERO 0b0 myArray = ONE;
bool myValue = myArray;
I know I can simply make an array of bool, but a bool in avr-gcc is 8 bits ?
I have seen the https://www.avrfreaks.net/forum/c-packed-array-bool thread, but I wanted to know if theirs is something else like this, but for large arrays instead of just a uint8_t
I know I can simply make a wrapper around this and an array of uint8_t, but I just wanted to know if their was an alternative before starting to work on this.
Thank you verry much !