use the global register access macros in the flash driver