Hi Fadis,
Thanks for the patch! Unfortunately, it won't apply to the current development libmaple development code (which is the "refactor" github branch). Much has changed in libmaple since the last release, and the low-level timer API you are using no longer exists.
For now, preliminary information on how libmaple is being restructured is available here:
http://static.leaflabs.com/mbolivar/libmaple_design/index.html
The old file timers.h became the new timer.h; the new version has been made public, and is available here:
https://github.com/leaflabs/libmaple/blob/refactor/libmaple/timer.h
I am trying to finish the work going on in the refactor branch by the end of the week; we are doing it in order to provide you and the growing number of other community contributors with a stable API to work against. The new libmaple interfaces are not expected to change for the foreseeable future.
We would love to see this patch redone in terms of the new timer API. Thanks again!