Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
12345678910111213141516171819202122232425262728 |
- /*
- * To keep Timer0 for common/timer.c override arduino/wiring.c.
- */
- #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();
- }
|