Bjoerns-TB / ttn-gps-tracker

GPS Tracker for TTN
GNU General Public License v3.0
17 stars 16 forks source link

undefined reference to `timer0_overflow_count' #6

Open bizkit1 opened 1 year ago

bizkit1 commented 1 year ago

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 commented 1 year ago

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.