In the following code I'm trying to make "SRAM", "FRAM", "EEPROM", and "FLASH" constants, MEM_TYPE an 8-bit variable that can be changed by other programs. The pointer should be pointing to MEM_TYPE.
I'm getting a error under uint8_t (defined as BYTE elsewhere in an included file), "*", *and enum which is causing the rest to be errored as well. I copied the format of another's program that I can't post here.
What am I really doing? And how do I fix it?
uint8_t volatile * const enum
{
SRAM,
FRAM,
EEPROM,
FLASH
}MEM_TYPE;