volatile uint8_t reset_mask[768] = {0}
Now I am setting the values of this array elements to 1 during one of internal operations.
In another functional call, I need to set all the elements of this array to 0. One way is by using for loop but I believe better way to assign all the elements of array is by using memset
memset(reset_mask, 0, sizeof(reset_mask));
but I am getting this error :- "cast from type 'volatile uint8_t* {aka volatile unsigned char*}' to type 'void*' casts away qualifiers"
In case we cannot use memset here, is there a better way to set all elements of this volatile array in one go?