We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
typedef volatile struct device_s { int rw; const int ro;} device_t;device_t *dev = (device_t*)0xA0000000;void bar(void){ dev->rw = dev->ro; dev->rw = dev->ro; // dev->ro = 3; // would generate error}