Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Any structures used to (directly) map io registers should also have all their fields marked 'volatile'. --- Quote End --- Which is a huge oversight I made too - I should have written:
# define MyPeripheral ((s_MyPeripheral volatile *) (0x80000000UL | MY_PER_BASE))
Bill