Add proc_pri function to extract a Process priority.
[bertos.git] / bertos / emul / timer_posix.h
index fd2e9c60cf24f734cc13f28d1d80025cfed7af52..acfdbe41c8fa64d40e82a6e8b644362155a17ac3 100644 (file)
@@ -30,9 +30,8 @@
  *
  * -->
  *
- * \version $Id$
  *
- * \author Bernardo Innocenti <bernie@develer.com>
+ * \author Bernie Innocenti <bernie@codewiz.org>
  *
  * \brief Low-level timer module for POSIX systems (interface).
  */
@@ -41,7 +40,7 @@
 
 // HW dependent timer initialization
 
-#define DEFINE_TIMER_ISR     void timer_isr(UNUSED_ARG(int, arg))
+#define DEFINE_TIMER_ISR     DECLARE_ISR_CONTEXT_SWITCH(timer_isr)
 
 /** Most Linux kernels can't do better than this (CONFIG_HZ=250). */
 #define TIMER_TICKS_PER_SEC  250