Clock settings for P2?
Rayman
Posts: 14,826
This may be a dumb question, but I'm trying to get a code, converted with Spin2Cpp, working on DE0 Prop2 prototype board...
How do you set the clock mode in GCC?
This is what Spin2Cpp gave me:
I think I should change _xinfreq to 6000000 for DE0 board, but what should _clkmode be?
And, what does it use when I just comment these lines out?
How do you set the clock mode in GCC?
This is what Spin2Cpp gave me:
static const int _clkmode = 1032; static const int _xinfreq = 5000000;
I think I should change _xinfreq to 6000000 for DE0 board, but what should _clkmode be?
And, what does it use when I just comment these lines out?
Comments
Clock mode and frequency are set in the board configuration file (so we don't have to keep changing sources).
That being said, you can always overload any configuration variable with propeller-load ... see propeller-load help.