1
0
tmk_keyboard/protocol/usb_hid/override_wiring.c
tmk a074364c37 Squashed 'tmk_core/' content from commit 05caacc
git-subtree-dir: tmk_core
git-subtree-split: 05caaccec92694bb24c8c3c3a9940b96efd4605c
2015-04-10 01:32:04 +09:00

30 lines
448 B
C

/*
* To keep Timer0 for common/timer.c override arduino/wiring.c.
*/
#define __DELAY_BACKWARD_COMPATIBLE__
#include <util/delay.h>
#include "common/timer.h"
#include "Arduino.h"
unsigned long millis()
{
return timer_read32();
}
unsigned long micros()
{
return timer_read32() * 1000UL;
}
void delay(unsigned long ms)
{
_delay_ms(ms);
}
void delayMicroseconds(unsigned int us)
{
_delay_us(us);
}
void init()
{
timer_init();
}