Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `timer0_overflow_count' #6

Open
bizkit1 opened this issue Jul 21, 2022 · 1 comment
Open

undefined reference to `timer0_overflow_count' #6

bizkit1 opened this issue Jul 21, 2022 · 1 comment

Comments

@bizkit1
Copy link

bizkit1 commented Jul 21, 2022

Hello,

I am trying to compile this for the adafruit feather m0 RFM915 (SAMD21) and i am running into this error:
undefined reference to timer0_overflow_count'
from here:

  cli();
      timer0_overflow_count += 8 * 64 * clockCyclesPerMicrosecond();
      sei();

Also, for cli() and sei() i get these errors:

'cli' was not declared in this scope
'sei' was not declared in this scope

Any help would be highly appreciated taking into consideration that your project is what i need for my setup. Thanks

@Bjoerns-TB
Copy link
Owner

Hi,

the sleep method used in this example is not compatible with the M0. Deleting the affected code and adding a simple delay will make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants