10 years, 12 months ago.

How are MPU registers accessed in a neat C++ style?

Hi all,

This is probabely a very stupid question ... I was wondering what is the proper way to access the MPU's special function registers. I' ve been messing' around with the LPC11U24 adc register like this:

LPC_ADC_Type adc;
adc.CR = 0;

But is this the way it should be done?

KK

1 Answer

10 years, 12 months ago.

Normal way is like:

LPC_ADC->CR = 0;

Accepted Answer