Arduino functions millis, micros and eventually some more to come

Dependents:   DigitalCamera_OV5642_WIZwiki-W7500 BMC F746NG_TestAll Prelude_OV5642_dev

Arduino basic compatibility millis(), micros(), evtl. more to come.

micros() and millis() are uint32_t and have a correct overflow at 2^32-1. micros() has a granularity/resolution of 50. This can be changed by a define. 1 microsecond is not realistic because every count needs an irq. A resolution of 50 microseconds means 20KHz irq. That should not take away more than 1 percent overall processing time.

History

TICKER_PERIOD_US changed to 50 default tip

2015-03-30, by eduardoG26 [Mon, 30 Mar 2015 13:50:18 +0000] rev 3

TICKER_PERIOD_US changed to 50


Added: micros()

2015-03-27, by eduardoG26 [Fri, 27 Mar 2015 15:36:20 +0000] rev 2

Added: micros()


20150326

2015-03-26, by eduardoG26 [Thu, 26 Mar 2015 14:21:36 +0000] rev 1

20150326


First Revision

2014-11-24, by eduardoG26 [Mon, 24 Nov 2014 17:02:21 +0000] rev 0

First Revision