How to adjust the frequency of psp in my program?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
raybinson
Posts: 2
Joined: Thu Nov 03, 2005 9:47 pm

How to adjust the frequency of psp in my program?

Post by raybinson »

Is there any APIs to adjust the frequency of psp?
I'd like to make a program which need to save power of the batery.So, i'd like to adjust the frequency.
Thx!
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

you should check includes from pspsdk they are well documented
this is from psppower.h

Code: Select all

/**
 * Set CPU Frequency
 * @param cpufreq - new CPU frequency, valid values are 1 - 333
 */
int scePowerSetCpuClockFrequency(int cpufreq);

/**
 * Set Bus Frequency
 * @param busfreq - new BUS frequency, valid values are 1 - 167
 */
int scePowerSetBusClockFrequency(int busfreq);

/**
 * Set Clock Frequencies
 *
 * NOTE: Please use scePowerSetBusClockFrequency and
 * scePowerSetCpuClockFrequency instead of this function
 * for clock <= 222 and bus <= 111.
 *
 * @param cpufreq - cpu frequency, valid from 1-333
 * @param ramfreq - ram frequency, valid from 1-333
 * @param busfreq - bus frequency, valid from 1-166
 */
int scePowerSetClockFrequency&#40;int cpufreq, int ramfreq, int busfreq&#41;;
raybinson
Posts: 2
Joined: Thu Nov 03, 2005 9:47 pm

Post by raybinson »

thank u!!!
Post Reply