Listing 1-3. Exercise 1, Part 3
1-28
Getting Started with ADSP-BF537 EZ-KIT Lite
/* command to terminate the table */
{ADI_PWR_CMD_END,0 }
};
typedef struct
{
ADI_PWR_VLEV v;
const char *n;
} voltage_levels_type;
voltage_levels_type voltage_levels[] =
{
{ ADI_PWR_VLEV_085, "0.85" },
{ ADI_PWR_VLEV_095, "0.95" },
{ ADI_PWR_VLEV_105, "1.05" },
{ ADI_PWR_VLEV_125, "1.25" },
};
void main ()
{
unsigned long long cycles_begin, cycles_end;
unsigned long seconds_begin, seconds_end;
unsigned long display_cycles_end;
volatile unsigned int time_end;
int i, v;
adi_pwr_Init(ezkit_init);
srand ( 22 );
printf("%20s%20s%20s\n","Voltage","Seconds","Cycles (x 1m)");
for ( v = 0; v < sizeof ( voltage_levels ) / sizeof (
voltage_levels_type ); ++v )
{
adi_pwr_SetMaxFreqForVolt ( voltage_levels[ v ].v );
start_real_time_clock ();
cycles_begin = clock ();
www.BDTIC.com/ADI
Содержание EZ-KIT Lite ADSP-BF537
Страница 4: ...www BDTIC com ADI ...
Страница 8: ...CONTENTS viii Getting Started with ADSP BF537 EZ KIT Lite www BDTIC com ADI ...
Страница 52: ...Listing 1 3 Exercise 1 Part 3 1 30 Getting Started with ADSP BF537 EZ KIT Lite www BDTIC com ADI ...
Страница 88: ...What s Next 3 22 Getting Started with ADSP BF537 EZ KIT Lite www BDTIC com ADI ...