forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to adjust the frequency of psp in my program?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
raybinson



Joined: 03 Nov 2005
Posts: 2

PostPosted: Thu Nov 03, 2005 9:53 pm    Post subject: How to adjust the frequency of psp in my program? Reply with quote

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!
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Thu Nov 03, 2005 10:32 pm    Post subject: Reply with quote

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

/**
 * 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(int cpufreq, int ramfreq, int busfreq);
Back to top
View user's profile Send private message Visit poster's website
raybinson



Joined: 03 Nov 2005
Posts: 2

PostPosted: Fri Nov 04, 2005 4:59 pm    Post subject: Reply with quote

thank u!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group