AnsweredAssumed Answered

Lpc5410x set voltage api

Question asked by Sven Savic on Aug 21, 2016
Latest reply on Aug 29, 2016 by Hui_Ma

How do you call set_voltage API function. Datasheet is quite vague on details...

 

So from datasheet:

typedef struct _PWRD {

  unsigned int (*set_pll)(unsigned int mul, unsigned int inFreq);

  unsigned int (*set_voltage)(unsigned intmode, unsigned int desFreq);

  void (*power_mode_configure)(unsigned intmode, unsigned int peripheral);

}PWRD;

 

#define rom_driver_ptr (*(ROM)**) 0x03000200

pPWRD = (PWRD*)(rom_driver_ptr->pPWRD);

pPWRD->set_voltage(??, 96000000);

 

What I dont understand from this is,

- how is ROM defined

- what is pPWRD

- what is param0 in set_voltage. There is only description mode =0 for low power mode .. should I select some arbitrary value here ?

 

Thanks...

Outcomes