aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/semaphores.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/semaphores.h')
-rw-r--r--src/include/semaphores.h16
1 files changed, 8 insertions, 8 deletions
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);