| |||
| Home > Basic Principles > Accessing Hardware | |||
When accessing your flash device and any other hardware peripherals
from C you must use volatile memory accesses
so that the compiler does not optimize them away. To assist with this,
macros M8, M16 and M32 are provided in the auto-generated C file
when you create a new flash project to allow you to perform 8-,
16- and 32-bit volatile memory accesses respectively.