84. Structures-iii

Question.3

A developer defines a memory-mapped peripheral struct:

typedef struct {
   volatile uint32_t CTRL;
   volatile float THRESHOLD;
   volatile uint32_t STATUS;
} ADC_Periph;

#define ADC1 ((ADC_Periph *)0x40012000)
ADC1->THRESHOLD = 2.5f;

What is problematic about this struct?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!