1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - OS - include
3   File:     resource.h
4 
5   Copyright 2008 Nintendo.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Date:: 2008-02-21#$
14   $Rev: 4282 $
15   $Author: yada $
16  *---------------------------------------------------------------------------*/
17 #ifndef NITRO_OS_RESOURCE_H_
18 #define NITRO_OS_RESOURCE_H_
19 
20 #ifndef SDK_ASM
21 #include  <nitro/types.h>
22 
23 #include  <nitro/os/common/thread.h>
24 #include  <nitro/os/common/alarm.h>
25 #include  <nitro/os/common/arena.h>
26 #include  <nitro/os/common/valarm.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 //---- OS resource (for debug)
33 typedef struct
34 {
35 	BOOL               threadResourceFlag;
36 	BOOL               alarmResourceFlag;
37 	BOOL               valarmResourceFlag;
38 	BOOL               arenaResourceFlag;
39 
40 	OSThreadResource   threadResource;
41 	OSAlarmResource    alarmResource;
42 	OSVAlarmResource   valarmResource;
43 	OSArenaResource    arenaResource;
44 }
45 OSResource;
46 
47 //================================================================================
48 //   for DEBUG
49 //================================================================================
50 /*---------------------------------------------------------------------------*
51   Name:         OS_GetAllResources
52 
53   Description:  store system resources to specified pointer
54 
55   Arguments:    resource       pointer to store system resources
56 
57   Returns:      TRUE  ... success
58                 FALSE ... fail
59  *---------------------------------------------------------------------------*/
60 extern BOOL OS_GetAllResources(OSResource *resource);
61 
62 
63 #endif /* SDK_ASM */
64 
65 #ifdef __cplusplus
66 } /* extern "C" */
67 #endif
68 
69 /*NITRO_OS_RESOURCE_H_*/
70 #endif
71