/*#*
*#* $Log$
+ *#* Revision 1.17 2004/11/16 22:37:14 bernie
+ *#* Replace IPTR with iptr_t.
+ *#*
*#* Revision 1.16 2004/08/25 14:12:08 rasky
*#* Aggiornato il comment block dei log RCS
*#*
return result;
}
-DEPRECATED INLINE time_t timer_gettick(void)
-{
- return timer_ticks();
-}
-
/*!
* Faster version of timer_ticks(), to be called only when the timer
return _clock;
}
-DEPRECATED INLINE time_t timer_gettick_irq(void)
-{
- return timer_ticks_unlocked();
-}
-
/*!
* Return the minutes passed since timer start.
*
- * The minutes uptime is computed directly from system tick counter:
- * in case of a 4 bytes time_t after 71582 minutes the value will
- * wrap around.
+ * The uptime in minutes is computed directly from system tick counter.
+ * This value wraps around every 71582 minutes with a 32bit time_t.
*/
INLINE time_t timer_minutes(void)
{
/*#*
*#* $Log$
+ *#* Revision 1.6 2004/11/16 22:37:14 bernie
+ *#* Replace IPTR with iptr_t.
+ *#*
*#* Revision 1.5 2004/08/25 14:12:08 rasky
*#* Aggiornato il comment block dei log RCS
*#*
//! Type of time expressed in ticks of the hardware high precision timer
typedef uint16_t hptime_t;
-static void system_timer_isr(UNUSED(IPTR, arg));
+static void system_timer_isr(UNUSED(iptr_t, arg));
static void timer_hw_init(void)
{
}
#define DEFINE_TIMER_ISR \
- static void system_timer_isr(UNUSED(IPTR, arg))
+ static void system_timer_isr(UNUSED(iptr_t, arg))
#endif /* DRV_TIMER_DSP56_H */
/*#*
*#* $Log$
+ *#* Revision 1.20 2004/11/16 22:37:14 bernie
+ *#* Replace IPTR with iptr_t.
+ *#*
*#* Revision 1.19 2004/10/19 11:47:39 bernie
*#* Kill warnings when !CONFIG_PROC_MONITOR.
*#*
* \return Process structure of new created process
* if successful, NULL otherwise.
*/
-struct Process *proc_new_with_name(UNUSED(const char*, name), void (*entry)(void), IPTR data, size_t stacksize, cpustack_t *stack_base)
+struct Process *proc_new_with_name(UNUSED(const char*, name), void (*entry)(void), iptr_t data, size_t stacksize, cpustack_t *stack_base)
{
Process *proc;
cpuflags_t flags;
/*!
* Get the pointer to the user data of the current process
*/
-IPTR proc_current_user_data(void)
+iptr_t proc_current_user_data(void)
{
return CurrentProcess->user_data;
}
/*#*
*#* $Log$
+ *#* Revision 1.8 2004/11/16 22:37:14 bernie
+ *#* Replace IPTR with iptr_t.
+ *#*
*#* Revision 1.7 2004/10/19 08:54:55 bernie
*#* Define forbid_cnt.
*#*
/* Task scheduling services */
void proc_init(void);
-struct Process *proc_new_with_name(const char* name, void (*entry)(void), IPTR data, size_t stacksize, cpustack_t *stack);
+struct Process *proc_new_with_name(const char* name, void (*entry)(void), iptr_t data, size_t stacksize, cpustack_t *stack);
#if !CONFIG_KERN_MONITOR
#define proc_new(entry,data,size,stack) proc_new_with_name(NULL,(entry),(data),(size),(stack))
void proc_switch(void);
void proc_test(void);
struct Process* proc_current(void);
-IPTR proc_current_user_data(void);
+iptr_t proc_current_user_data(void);
void proc_rename(struct Process* proc, const char* name);
#if CONFIG_KERN_PREEMPTIVE
/*#*
*#* $Log$
+ *#* Revision 1.11 2004/11/16 22:37:14 bernie
+ *#* Replace IPTR with iptr_t.
+ *#*
*#* Revision 1.10 2004/10/19 11:47:07 bernie
*#* Add missing #endif.
*#*
{
Node link; /*!< Link Process into scheduler lists */
cpustack_t *stack; /*!< Per-process SP */
- IPTR user_data; /*!< Custom data passed to the process */
+ iptr_t user_data; /*!< Custom data passed to the process */
#if CONFIG_KERN_SIGNALS
sigset_t sig_wait; /*!< Signals the process is waiting for */