Some Arduino refactoring and it builds now

This commit is contained in:
Ziver Koc 2016-05-02 10:56:15 +02:00
parent 606e767f34
commit d377bbc0a9
14 changed files with 92 additions and 62 deletions

View file

@ -5,7 +5,7 @@
void pinInterrupt() // here the interrupt is handled after wakeup
void __Interrupt_pinInterrupt__() // the interrupt is handled here after wakeup
{
// execute code here after wake-up before returning to the loop() function
// timers and code using timers (serial.print and more...) will not work here.
@ -49,7 +49,7 @@ void Interrupt::setupTimerInterrupt(unsigned int milliseconds)
*
* In all but the IDLE sleep modes only LOW can be used.
*/
attachInterrupt(0,pinInterrupt, LOW);
attachInterrupt(0,__Interrupt_pinInterrupt__, LOW);
/*
power_adc_disable();
power_spi_disable();