From 5e64a9fec2e17d008b9488faa027d2beaa130a88 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 5 Mar 2008 10:59:11 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@215 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/semaphores.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/include/semaphores.h') diff --git a/src/include/semaphores.h b/src/include/semaphores.h index 0457da81d..c894629a4 100644 --- a/src/include/semaphores.h +++ b/src/include/semaphores.h @@ -34,20 +34,20 @@ typedef struct { /** Queue of the threads sleeping on this Semaphore.*/ ThreadsQueue s_queue; /** The Semaphore counter.*/ - t_cnt s_cnt; + cnt_t s_cnt; } Semaphore; #ifdef __cplusplus extern "C" { #endif - void chSemInit(Semaphore *sp, t_cnt n); - void chSemReset(Semaphore *sp, t_cnt n); - void chSemResetI(Semaphore *sp, t_cnt n); - t_msg chSemWait(Semaphore *sp); - t_msg chSemWaitS(Semaphore *sp); + void chSemInit(Semaphore *sp, cnt_t n); + void chSemReset(Semaphore *sp, cnt_t n); + void chSemResetI(Semaphore *sp, cnt_t n); + msg_t chSemWait(Semaphore *sp); + msg_t chSemWaitS(Semaphore *sp); #ifdef CH_USE_SEMAPHORES_TIMEOUT - t_msg chSemWaitTimeout(Semaphore *sp, t_time time); - t_msg chSemWaitTimeoutS(Semaphore *sp, t_time time); + msg_t chSemWaitTimeout(Semaphore *sp, systime_t time); + msg_t chSemWaitTimeoutS(Semaphore *sp, systime_t time); #endif void chSemSignal(Semaphore *sp); void chSemSignalI(Semaphore *sp); -- cgit v1.2.3