Skip to content

Commit bef5b9b

Browse files
author
Rajmund Szymanski
committed
minor update
1 parent 6104735 commit bef5b9b

File tree

14 files changed

+58
-57
lines changed

14 files changed

+58
-57
lines changed

IntrOS/interface/inc/os_bar.h

Lines changed: 3 additions & 3 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 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+
4446
struct __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 *

IntrOS/interface/inc/os_box.h

Lines changed: 3 additions & 3 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 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+
4446
struct __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 *

IntrOS/interface/inc/os_cnd.h

Lines changed: 3 additions & 3 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 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+
4446
struct __cnd
4547
{
4648
unsigned signal;
4749
};
4850

49-
typedef struct __cnd cnd_t, *cnd_id;
50-
5151
/**********************************************************************************************************************
5252
* *
5353
* Name : _CND_INIT *

IntrOS/interface/inc/os_evt.h

Lines changed: 3 additions & 3 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 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+
4446
struct __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 *

IntrOS/interface/inc/os_flg.h

Lines changed: 3 additions & 3 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 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+
4446
struct __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 )

IntrOS/interface/inc/os_lst.h

Lines changed: 3 additions & 3 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 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+
4446
struct __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 *

IntrOS/interface/inc/os_mem.h

Lines changed: 3 additions & 3 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 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+
4446
struct __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 ) \

IntrOS/interface/inc/os_msg.h

Lines changed: 3 additions & 3 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 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+
4446
struct __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 *

IntrOS/interface/inc/os_mtx.h

Lines changed: 3 additions & 3 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 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+
4446
struct __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 *

IntrOS/interface/inc/os_sem.h

Lines changed: 3 additions & 3 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 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+
4446
struct __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 *

0 commit comments

Comments
 (0)