File tree Expand file tree Collapse file tree 14 files changed +60
-35
lines changed Expand file tree Collapse file tree 14 files changed +60
-35
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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,7 +41,7 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __bar bar_t , * bar_id ;
44+ typedef struct __bar bar_t ;
4545
4646struct __bar
4747{
@@ -50,6 +50,8 @@ struct __bar
5050 unsigned limit ; // barrier's value limit
5151};
5252
53+ typedef struct __bar bar_id [];
54+
5355/**********************************************************************************************************************
5456 * *
5557 * 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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,7 +41,7 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __box box_t , *box_id ;
44+ typedef struct __box box_t ;
4545
4646struct __box
4747{
@@ -54,6 +54,8 @@ struct __box
5454 unsigned size; // size of a single mail (in bytes)
5555};
5656
57+ typedef struct __box box_id[];
58+
5759/* *********************************************************************************************************************
5860 * *
5961 * 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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,15 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __cnd cnd_t , * cnd_id ;
44+ typedef struct __cnd cnd_t ;
4545
4646struct __cnd
4747{
4848 unsigned signal ;
4949};
5050
51+ typedef struct __cnd cnd_id [];
52+
5153/**********************************************************************************************************************
5254 * *
5355 * 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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,14 +41,16 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __evt evt_t , * evt_id ;
44+ typedef struct __evt evt_t ;
4545
4646struct __evt
4747{
4848 unsigned signal ;
4949 unsigned event ;
5050};
5151
52+ typedef struct __evt evt_id [];
53+
5254/**********************************************************************************************************************
5355 * *
5456 * 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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,15 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __flg flg_t , * flg_id ;
44+ typedef struct __flg flg_t ;
4545
4646struct __flg
4747{
4848 unsigned flags ; // flag's current value
4949};
5050
51+ typedef struct __flg flg_id [];
52+
5153/* -------------------------------------------------------------------------- */
5254
5355#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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,15 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __lst lst_t , * lst_id ;
44+ typedef struct __lst lst_t ;
4545
4646struct __lst
4747{
4848 que_t * next ; // next memory object in the queue, previously created in the memory pool
4949};
5050
51+ typedef struct __lst lst_id [];
52+
5153/**********************************************************************************************************************
5254 * *
5355 * 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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,7 +41,7 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __mem mem_t , *mem_id ;
44+ typedef struct __mem mem_t ;
4545
4646struct __mem
4747{
@@ -51,6 +51,8 @@ struct __mem
5151 void * data; // pointer to memory pool buffer
5252};
5353
54+ typedef struct __mem mem_id[];
55+
5456/* -------------------------------------------------------------------------- */
5557
5658#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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,7 +41,7 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __msg msg_t , *msg_id ;
44+ typedef struct __msg msg_t ;
4545
4646struct __msg
4747{
@@ -53,6 +53,8 @@ struct __msg
5353 unsigned *data; // queue data
5454};
5555
56+ typedef struct __msg msg_id[];
57+
5658/* *********************************************************************************************************************
5759 * *
5860 * 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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,15 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __mtx mtx_t , * mtx_id ;
44+ typedef struct __mtx mtx_t ;
4545
4646struct __mtx
4747{
4848 tsk_t * owner ; // owner task
4949};
5050
51+ typedef struct __mtx mtx_id [];
52+
5153/**********************************************************************************************************************
5254 * *
5355 * 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 10 .03.2017
5+ @date 29 .03.2017
66 @brief This file contains definitions for IntrOS.
77
88 ******************************************************************************
@@ -41,13 +41,15 @@ extern "C" {
4141 * *
4242 **********************************************************************************************************************/
4343
44- typedef struct __sem sem_t , * sem_id ;
44+ typedef struct __sem sem_t ;
4545
4646struct __sem
4747{
4848 unsigned count ; // semaphore's current value
4949};
5050
51+ typedef struct __sem sem_id [];
52+
5153/**********************************************************************************************************************
5254 * *
5355 * Name : _SEM_INIT *
You can’t perform that action at this time.
0 commit comments