diff options
| author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-03 15:52:55 +0000 |
|---|---|---|
| committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-03 15:52:55 +0000 |
| commit | ec0a917ae1bef32f1848161e759ef98542327523 (patch) | |
| tree | a1e800e77272b8b605b8678d70402d42f9f2a57c /src/include | |
| parent | c9efc761574cc108474517a21b98570e21301778 (diff) | |
| download | ChibiOS-ec0a917ae1bef32f1848161e759ef98542327523.tar.gz ChibiOS-ec0a917ae1bef32f1848161e759ef98542327523.tar.bz2 ChibiOS-ec0a917ae1bef32f1848161e759ef98542327523.zip | |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@212 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/mutexes.h | 4 | ||||
| -rw-r--r-- | src/include/queues.h | 34 | ||||
| -rw-r--r-- | src/include/scheduler.h | 2 | ||||
| -rw-r--r-- | src/include/serial.h | 12 |
4 files changed, 26 insertions, 26 deletions
diff --git a/src/include/mutexes.h b/src/include/mutexes.h index 9e9422bd5..022e62dea 100644 --- a/src/include/mutexes.h +++ b/src/include/mutexes.h @@ -44,8 +44,8 @@ extern "C" { void chMtxInit(Mutex *mp);
void chMtxLock(Mutex *mp);
void chMtxLockS(Mutex *mp);
- BOOL chMtxTryLock(Mutex *mp);
- BOOL chMtxTryLockS(Mutex *mp);
+ t_bool chMtxTryLock(Mutex *mp);
+ t_bool chMtxTryLockS(Mutex *mp);
void chMtxUnlock(void);
void chMtxUnlockS(void);
void chMtxUnlockAll(void);
diff --git a/src/include/queues.h b/src/include/queues.h index 31258ce69..a28539fd5 100644 --- a/src/include/queues.h +++ b/src/include/queues.h @@ -46,13 +46,13 @@ typedef void (*t_qnotify)(void); */
typedef struct {
/** Pointer to the queue buffer.*/
- BYTE8 *q_buffer;
+ uint8_t *q_buffer;
/** Pointer to the first location after the buffer.*/
- BYTE8 *q_top;
+ uint8_t *q_top;
/** Write pointer.*/
- BYTE8 *q_wrptr;
+ uint8_t *q_wrptr;
/** Read pointer.*/
- BYTE8 *q_rdptr;
+ uint8_t *q_rdptr;
/** Counter semaphore.*/
Semaphore q_sem;
/** Data notification callback.*/
@@ -91,11 +91,11 @@ extern "C" { * Input Queues functions. An Input Queue is usually written into by an
* interrupt handler and read from a thread.
*/
- void chIQInit(Queue *qp, BYTE8 *buffer, t_size size, t_qnotify inotify);
+ void chIQInit(Queue *qp, uint8_t *buffer, t_size size, t_qnotify inotify);
void chIQReset(Queue *qp);
- t_msg chIQPutI(Queue *qp, BYTE8 b);
+ t_msg chIQPutI(Queue *qp, uint8_t b);
t_msg chIQGet(Queue *qp);
- t_size chIQRead(Queue *qp, BYTE8 *buffer, t_size n);
+ t_size chIQRead(Queue *qp, uint8_t *buffer, t_size n);
#ifdef CH_USE_QUEUES_TIMEOUT
t_msg chIQGetTimeout(Queue *qp, t_time time);
#endif
@@ -104,11 +104,11 @@ extern "C" { * Output Queues functions. An Output Queue is usually written into by a
* thread and read from an interrupt handler.
*/
- void chOQInit(Queue *queue, BYTE8 *buffer, t_size size, t_qnotify onotify);
+ void chOQInit(Queue *queue, uint8_t *buffer, t_size size, t_qnotify onotify);
void chOQReset(Queue *queue);
- void chOQPut(Queue *queue, BYTE8 b);
+ void chOQPut(Queue *queue, uint8_t b);
t_msg chOQGetI(Queue *queue);
- t_size chOQWrite(Queue *queue, BYTE8 *buffer, t_size n);
+ t_size chOQWrite(Queue *queue, uint8_t *buffer, t_size n);
#ifdef __cplusplus
}
#endif
@@ -120,13 +120,13 @@ extern "C" { */
typedef struct {
/** Pointer to the queue buffer.*/
- BYTE8 *hdq_buffer;
+ uint8_t *hdq_buffer;
/** Pointer to the first location after the buffer.*/
- BYTE8 *hdq_top;
+ uint8_t *hdq_top;
/** Write pointer.*/
- BYTE8 *hdq_wrptr;
+ uint8_t *hdq_wrptr;
/** Read pointer.*/
- BYTE8 *hdq_rdptr;
+ uint8_t *hdq_rdptr;
/** Input counter semaphore.*/
Semaphore hdq_isem;
/** Output counter semaphore.*/
@@ -164,12 +164,12 @@ typedef struct { #ifdef __cplusplus
extern "C" {
#endif
- void chHDQInit(HalfDuplexQueue *qp, BYTE8 *buffer, t_size size,
+ void chHDQInit(HalfDuplexQueue *qp, uint8_t *buffer, t_size size,
t_qnotify inotify, t_qnotify onotify);
t_msg chHDQGetReceive(HalfDuplexQueue *qp);
- void chHDQPutTransmit(HalfDuplexQueue *qp, BYTE8 b);
+ void chHDQPutTransmit(HalfDuplexQueue *qp, uint8_t b);
t_msg chHDQGetTransmitI(HalfDuplexQueue *qp);
- t_msg chHDQPutReceiveI(HalfDuplexQueue *qp, BYTE8 b);
+ t_msg chHDQPutReceiveI(HalfDuplexQueue *qp, uint8_t b);
#ifdef CH_USE_QUEUES_TIMEOUT
t_msg chHDQGetReceiveTimeout(HalfDuplexQueue *qp, t_time time);
#endif
diff --git a/src/include/scheduler.h b/src/include/scheduler.h index 6f4d54e56..f238002a1 100644 --- a/src/include/scheduler.h +++ b/src/include/scheduler.h @@ -64,7 +64,7 @@ extern "C" { void chSchWakeupS(Thread *tp, t_msg msg);
void chSchDoRescheduleI(void);
void chSchRescheduleS(void);
- BOOL chSchRescRequiredI(void);
+ t_bool chSchRescRequiredI(void);
#ifdef __cplusplus
}
#endif
diff --git a/src/include/serial.h b/src/include/serial.h index 8e3127bac..4edef1e19 100644 --- a/src/include/serial.h +++ b/src/include/serial.h @@ -41,7 +41,7 @@ #define SD_BREAK_DETECTED 32
/** Serial Driver condition flags type.*/
-typedef UWORD16 t_dflags;
+typedef uint16_t t_dflags;
#ifdef CH_USE_SERIAL_FULLDUPLEX
@@ -76,9 +76,9 @@ typedef struct { extern "C" {
#endif
void chFDDInit(FullDuplexDriver *sd,
- BYTE8 *ib, t_size isize, t_qnotify inotify,
- BYTE8 *ob, t_size osize, t_qnotify onotify);
- void chFDDIncomingDataI(FullDuplexDriver *sd, BYTE8 b);
+ uint8_t *ib, t_size isize, t_qnotify inotify,
+ uint8_t *ob, t_size osize, t_qnotify onotify);
+ void chFDDIncomingDataI(FullDuplexDriver *sd, uint8_t b);
t_msg chFDDRequestDataI(FullDuplexDriver *sd);
void chFDDAddFlagsI(FullDuplexDriver *sd, t_dflags mask);
t_dflags chFDDGetAndClearFlags(FullDuplexDriver *sd);
@@ -137,9 +137,9 @@ typedef struct { #ifdef __cplusplus
extern "C" {
#endif
- void chHDDInit(HalfDuplexDriver *sd, BYTE8 *b, t_size size,
+ void chHDDInit(HalfDuplexDriver *sd, uint8_t *b, t_size size,
t_qnotify inotify, t_qnotify onotify);
- void chHDDIncomingDataI(HalfDuplexDriver *sd, BYTE8 b);
+ void chHDDIncomingDataI(HalfDuplexDriver *sd, uint8_t b);
t_msg chHDDRequestDataI(HalfDuplexDriver *sd);
void chHDDAddFlagsI(HalfDuplexDriver *sd, t_dflags mask);
t_dflags chHDDGetAndClearFlags(HalfDuplexDriver *sd);
|
