Skip to content

Commit f854dfc

Browse files
author
Rajmund Szymanski
committed
updated objects definitions
1 parent f1a3ef9 commit f854dfc

File tree

14 files changed

+60
-35
lines changed

14 files changed

+60
-35
lines changed

IntrOS/interface/inc/os_bar.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __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 *

IntrOS/interface/inc/os_box.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __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 *

IntrOS/interface/inc/os_cnd.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __cnd
4747
{
4848
unsigned signal;
4949
};
5050

51+
typedef struct __cnd cnd_id[];
52+
5153
/**********************************************************************************************************************
5254
* *
5355
* Name : _CND_INIT *

IntrOS/interface/inc/os_evt.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __evt
4747
{
4848
unsigned signal;
4949
unsigned event;
5050
};
5151

52+
typedef struct __evt evt_id[];
53+
5254
/**********************************************************************************************************************
5355
* *
5456
* Name : _EVT_INIT *

IntrOS/interface/inc/os_flg.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __flg
4747
{
4848
unsigned flags; // flag's current value
4949
};
5050

51+
typedef struct __flg flg_id[];
52+
5153
/* -------------------------------------------------------------------------- */
5254

5355
#define flgAny ( false )

IntrOS/interface/inc/os_lst.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __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 *

IntrOS/interface/inc/os_mem.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __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 ) \

IntrOS/interface/inc/os_msg.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __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 *

IntrOS/interface/inc/os_mtx.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __mtx
4747
{
4848
tsk_t * owner; // owner task
4949
};
5050

51+
typedef struct __mtx mtx_id[];
52+
5153
/**********************************************************************************************************************
5254
* *
5355
* Name : _MTX_INIT *

IntrOS/interface/inc/os_sem.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

4646
struct __sem
4747
{
4848
unsigned count; // semaphore's current value
4949
};
5050

51+
typedef struct __sem sem_id[];
52+
5153
/**********************************************************************************************************************
5254
* *
5355
* Name : _SEM_INIT *

0 commit comments

Comments
 (0)