File tree Expand file tree Collapse file tree 14 files changed +58
-57
lines changed Expand file tree Collapse file tree 14 files changed +58
-57
lines changed Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_bar.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,15 +41,15 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __bar bar_t , * bar_id ;
45+
4446struct __bar
4547{
4648 unsigned signal ;
4749 unsigned count ; // barrier's current value
4850 unsigned limit ; // barrier's value limit
4951};
5052
51- typedef struct __bar bar_t , * bar_id ;
52-
5353/**********************************************************************************************************************
5454 * *
5555 * Name : _BAR_INIT *
Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_box.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,6 +41,8 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __box box_t , *box_id;
45+
4446struct __box
4547{
4648 unsigned count; // inherited from semaphore
@@ -52,8 +54,6 @@ struct __box
5254 unsigned size; // size of a single mail (in bytes)
5355};
5456
55- typedef struct __box box_t , *box_id;
56-
5757/* *********************************************************************************************************************
5858 * *
5959 * Name : _BOX_INIT *
Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_cnd.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,13 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __cnd cnd_t , * cnd_id ;
45+
4446struct __cnd
4547{
4648 unsigned signal ;
4749};
4850
49- typedef struct __cnd cnd_t , * cnd_id ;
50-
5151/**********************************************************************************************************************
5252 * *
5353 * Name : _CND_INIT *
Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_evt.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,14 +41,14 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __evt evt_t , * evt_id ;
45+
4446struct __evt
4547{
4648 unsigned signal ;
4749 unsigned event ;
4850};
4951
50- typedef struct __evt evt_t , * evt_id ;
51-
5252/**********************************************************************************************************************
5353 * *
5454 * Name : _EVT_INIT *
Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_flg.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,13 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __flg flg_t , * flg_id ;
45+
4446struct __flg
4547{
4648 unsigned flags ; // flag's current value
4749};
4850
49- typedef struct __flg flg_t , * flg_id ;
50-
5151/* -------------------------------------------------------------------------- */
5252
5353#define flgAny ( false )
Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_lst.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,13 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __lst lst_t , * lst_id ;
45+
4446struct __lst
4547{
4648 que_t * next ; // next memory object in the queue, previously created in the memory pool
4749};
4850
49- typedef struct __lst lst_t , * lst_id ;
50-
5151/**********************************************************************************************************************
5252 * *
5353 * Name : _LST_INIT *
Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_mem.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,6 +41,8 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __mem mem_t , *mem_id;
45+
4446struct __mem
4547{
4648 que_t * next; // inherited from list
@@ -49,8 +51,6 @@ struct __mem
4951 void * data; // pointer to memory pool buffer
5052};
5153
52- typedef struct __mem mem_t , *mem_id;
53-
5454/* -------------------------------------------------------------------------- */
5555
5656#define MSIZE ( size ) \
Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_msg.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,6 +41,8 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __msg msg_t , *msg_id;
45+
4446struct __msg
4547{
4648 unsigned count; // inherited from semaphore
@@ -51,8 +53,6 @@ struct __msg
5153 unsigned *data; // queue data
5254};
5355
54- typedef struct __msg msg_t , *msg_id;
55-
5656/* *********************************************************************************************************************
5757 * *
5858 * Name : _MSG_INIT *
Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_mtx.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,13 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __mtx mtx_t , * mtx_id ;
45+
4446struct __mtx
4547{
4648 tsk_t * owner ; // owner task
4749};
4850
49- typedef struct __mtx mtx_t , * mtx_id ;
50-
5151/**********************************************************************************************************************
5252 * *
5353 * Name : _MTX_INIT *
Original file line number Diff line number Diff line change 22
33 @file IntrOS: os_sem.h
44 @author Rajmund Szymanski
5- @date 04 .03.2017
5+ @date 10 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,13 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44+ typedef struct __sem sem_t , * sem_id ;
45+
4446struct __sem
4547{
4648 unsigned count ; // semaphore's current value
4749};
4850
49- typedef struct __sem sem_t , * sem_id ;
50-
5151/**********************************************************************************************************************
5252 * *
5353 * Name : _SEM_INIT *
You can’t perform that action at this time.
0 commit comments