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

This commit is contained in:
gdisirio 2009-10-17 09:40:49 +00:00
parent 34fd822f84
commit bc8d3db324
3 changed files with 23 additions and 2 deletions

View File

@ -31,7 +31,14 @@
#ifndef _CONDVARS_H_
#define _CONDVARS_H_
#if CH_USE_CONDVARS && CH_USE_MUTEXES
#if CH_USE_CONDVARS
/*
* Module dependancies check.
*/
#if !CH_USE_MUTEXES
#error "CH_USE_CONDVARS requires CH_USE_MUTEXES"
#endif
/**
* @brief CondVar structure.
@ -73,7 +80,7 @@ extern "C" {
*/
#define CONDVAR_DECL(name) CondVar name = _CONDVAR_DATA(name)
#endif /* CH_USE_CONDVARS && CH_USE_MUTEXES */
#endif /* CH_USE_CONDVARS */
#endif /* _CONDVARS_H_ */

View File

@ -29,6 +29,13 @@
#if CH_USE_MAILBOXES
/*
* Module dependancies check.
*/
#if !CH_USE_SEMAPHORES
#error "CH_USE_MAILBOXES requires CH_USE_SEMAPHORES"
#endif
typedef struct {
msg_t *mb_buffer; /**< Pointer to the mailbox buffer.*/
msg_t *mb_top; /**< Pointer to the first location

View File

@ -27,6 +27,13 @@
#ifndef _QUEUES_H_
#define _QUEUES_H_
/*
* Module dependancies check.
*/
#if !CH_USE_SEMAPHORES
#error "CH_USE_QUEUES requires CH_USE_SEMAPHORES"
#endif
/** Queue notification callback type. */
typedef void (*qnotify_t)(void);