git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@550 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2008-12-28 13:40:49 +00:00
parent 458a283483
commit 18dee1262e
4 changed files with 11 additions and 11 deletions

View File

@ -86,6 +86,7 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
- Added usage note into the readme of the MinGW demo. - Added usage note into the readme of the MinGW demo.
- Added usage notes for programmers to the ARM7 port documentation about - Added usage notes for programmers to the ARM7 port documentation about
interrupt handlers. interrupt handlers.
- Fixes and improvements through the documentation.
*** 0.8.3 *** *** 0.8.3 ***
- NEW: Introduced new API chThdSleepS() as a macro, no real changes in the - NEW: Introduced new API chThdSleepS() as a macro, no real changes in the

View File

@ -47,9 +47,6 @@ Thread *init_thread(Thread *tp, tprio_t prio) {
#endif #endif
#ifdef CH_USE_EVENTS #ifdef CH_USE_EVENTS
tp->p_epending = 0; tp->p_epending = 0;
#endif
#ifdef CH_USE_EXIT_EVENT
chEvtInit(&tp->p_exitesource);
#endif #endif
THREAD_EXT_INIT(tp); THREAD_EXT_INIT(tp);
return tp; return tp;

View File

@ -94,10 +94,6 @@ struct Thread {
/** The list of the threads waiting for this thread termination. */ /** The list of the threads waiting for this thread termination. */
Thread *p_waiting; Thread *p_waiting;
#endif #endif
#ifdef CH_USE_EXIT_EVENT
/** The thread termination \p EventSource. */
EventSource p_exitesource;
#endif
#ifdef CH_USE_MESSAGES #ifdef CH_USE_MESSAGES
ThreadsQueue p_msgqueue; ThreadsQueue p_msgqueue;
msg_t p_msg; msg_t p_msg;

View File

@ -27,7 +27,9 @@
#ifndef _EVTIMER_H_ #ifndef _EVTIMER_H_
#define _EVTIMER_H_ #define _EVTIMER_H_
/**
* Event timer structure.
*/
typedef struct { typedef struct {
VirtualTimer et_vt; VirtualTimer et_vt;
EventSource et_es; EventSource et_es;
@ -45,10 +47,14 @@ extern "C" {
/** /**
* Initializes an \p EvTimer structure. * Initializes an \p EvTimer structure.
* @param etp the EvTimer structure to be initialized
* @param time the interval in system ticks
*/ */
#define evtInit(etp, i) (chEvtInit(&(etp)->et_es), \ #define evtInit(etp, time) { \
(etp)->et_vt.vt_func = NULL, \ chEvtInit(&(etp)->et_es); \
(etp)->et_interval = (i)) (etp)->et_vt.vt_func = NULL; \
(etp)->et_interval = (time); \
}
#endif /* _EVTIMER_H_ */ #endif /* _EVTIMER_H_ */