Shop OBEX P1 Docs P2 Docs Learn Events
Clock settings for P2? — Parallax Forums

Clock settings for P2?

RaymanRayman Posts: 14,826
edited 2013-03-19 12:36 in Propeller 1
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:
 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

  • jazzedjazzed Posts: 11,803
    edited 2013-03-19 12:36
    Rayman wrote: »
    How do you set the clock mode in GCC?

    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.
Sign In or Register to comment.