e4ff61ff6c
This patch adds support for rtimer library on Galileo's platform. We use the PIT to implement the rtimer platform dependent functionalities. We chose the PIT for mainly two reason: I) its configuration is very simple II) it has a high frequency which provides us a good clock resolution (requirement from rtimer library). Since we keep track of the number of ticks in software, we define rtimer_clock_t type as uint64_t. This gives us a good amount of time til the variable overflows. For instance, a 32-bit type would overflow in about one hour for high clock resolution (~ 1us). The rtimer clock frequency (RTIMER_ARCH_SECOND) is setup to 1 kHz. There is no technical matter regarding this value. It is just an initial guess. Just for the record, we might want to use HPET in future to implement the rtimer library since it seems to be more appropriate. The reason why we don't use it at this moment is that, in order to configure it, we need support for ACPI 2.0 which we don't. Once we have use-cases for the rtimer library we'll probably replace PIT by HPET or any other timer more suitable for the job. |
||
---|---|---|
.. | ||
apple2enh | ||
atarixl | ||
avr-atmega128rfa1 | ||
avr-raven | ||
avr-ravenlcd | ||
avr-ravenusb | ||
avr-rcb | ||
avr-zigbit | ||
c64 | ||
c128 | ||
cc2530dk | ||
cc2538dk | ||
cooja | ||
cooja-ip64 | ||
econotag | ||
ev-aducrf101mkxz | ||
eval-adf7xxxmb4z | ||
exp5438 | ||
galileo | ||
jn516x | ||
mbxxx | ||
micaz | ||
minimal-net | ||
native | ||
seedeye | ||
sensinode | ||
sky | ||
srf06-cc26xx | ||
stm32nucleo-spirit1 | ||
stm32test | ||
win32 | ||
wismote | ||
z1 | ||
zoul |