How to set the clock frequency?

So there is no option in the compiler to set the clock frequency of the processor....How will that be handled? Do i need to edit the Makefile?

Parents
  • So there is no option in the compiler to set the clock frequency of the processor....How will that be handled? Do i need to edit the Makefile?

    Why would the compiler need to know the target CPU clock frequency? It has no use for it. On the other hand, you need to know it to calculate baudrates, timer frequencies and so on.

Reply
  • So there is no option in the compiler to set the clock frequency of the processor....How will that be handled? Do i need to edit the Makefile?

    Why would the compiler need to know the target CPU clock frequency? It has no use for it. On the other hand, you need to know it to calculate baudrates, timer frequencies and so on.

Children
More questions in this forum