Selecting a system clock with CTL.

Comments

2 comments

  • Avatar
    Richard Webb

    Refer to system_stm32f10x.c (for the STM32... guys) and its comment blocks. It does a decent job of explaining what it's doing and why.

    I normally just #include it and take the defaults. If you want to change it (there are spots like "Uncomment the line corresponding to the desired System clock (SYSCLK)" where you may want to do that), then explicitly add it to your project and import it so that you get a local copy to modify.

    0
    Comment actions Permalink
  • Avatar
    Gordon Scott

    Hmmmm,  your photo looks disarmingly like a photo of me.  Spooky.

    I think maybe that system_xxx.c file usually gets copied into the project directory?  Most of my projects have one of that form and either I've rarely modified them, or my modifications have been incorporated by Rowley. This STM32F0xx project seems to be an exception, as the appropriate file is not in the project directory. I can and will copy it in myself.

    I think you're right that where to make such changes. It seems to have most of the relevant stuff in it.

    I too usually use the defaults, but likely not this time.

    Thanks.

    Gordon.

    0
    Comment actions Permalink

Please sign in to leave a comment.