Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6366929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:29:05+00:00 2026-05-25T00:29:05+00:00

I would suspect this is a simple question but I am not able to

  • 0

I would suspect this is a simple question but I am not able to find an answer anywhere.

Does the ImageCraft compiler create a cpu frequency define? I know gcc-avr does in the form F_CPU but I have not been able to find a similar define for iccavr.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:29:06+00:00Added an answer on May 25, 2026 at 12:29 am

    I had a look at the online manual and found only a few predefined macros:

    http://www.imagecraft.com/help/iccavr/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ICCAVRHelp&file=5A-CPreprocessor2.html

    It seems that a symbol for CPU frequency does not exist.

    By the way, unless you can specify this somewhere in the Build options (i don’t know because i’ve used this compiler a long time ago), the compiler doesn’t really know what the avr frequency is. The microcontroller can run at different frequencies and oscillators (RC/XTAL) and the compiler does not really care because the machine code it generates will run in any case, it’s the programmer responsability to take care of that.

    But one thing that will come handy is the CPU type, for example if you need to make some code work on many CPUs where some registers have different names or bits meaning then you can #ifdef the appropriate symbol, like ATMega128 and handle the CPU-specific code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple question, not sure what the best answer is although I suspect it involves
Would a C++ CLI compiler be able to compile some large sets of C++
This is somewhat of a broad question, but it is one that I continue
A simple question I suspect. I have the simple function definition makePatientFixture :: [
My apologies if this is a stupid question, however I can't find any information
Apologies in advance, because I suspect this may be a silly question. I have
This is bit of a general question but I wanted to know some different
Would it not make sense to support a set of languages (Java, Python, Ruby,
Would the following SQL remove also the index - or does it have to
I ran into some similar questions on StackOverflow, tried the solutions, but did not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.